Commit UEA [20/06/2018]

This commit is contained in:
Pierre8rTeam
2018-06-20 15:35:55 +02:00
parent f2422666dd
commit 25b50c07ff
637 changed files with 1151 additions and 0 deletions
@@ -0,0 +1,77 @@
//+------------------------------------------------------------------+
//| ObjectsCustom.mqh |
//| Copyright 2015, Vasiliy Sokolov. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2015, Vasiliy Sokolov."
#property link "https://www.mql5.com"
//+------------------------------------------------------------------+
//| Base class CObjectCustom |
//+------------------------------------------------------------------+
class CObjectCustom
{
public:
void CObjectCustom()
{
printf("Object #"+(string)(count++)+" - "+typename(this));
}
private:
static int count;
};
static int CObjectCustom::count=0;
//+------------------------------------------------------------------+
//| Class describing human beings. |
//+------------------------------------------------------------------+
class CHuman : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing weather. |
//+------------------------------------------------------------------+
class CWeather : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing Expert Advisors. |
//+------------------------------------------------------------------+
class CExpert : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing cars. |
//+------------------------------------------------------------------+
class CCar : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing numbers. |
//+------------------------------------------------------------------+
class CNumber : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing price bars. |
//+------------------------------------------------------------------+
class CBar : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing quotations. |
//+------------------------------------------------------------------+
class CQuotes : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing the MetaQuotes company. |
//+------------------------------------------------------------------+
class CMetaQuotes : public CObjectCustom
{
};
//+------------------------------------------------------------------+
//| Class describing ships. |
//+------------------------------------------------------------------+
class CShip : public CObjectCustom
{
};
//+------------------------------------------------------------------+
+22
View File
@@ -0,0 +1,22 @@
//+------------------------------------------------------------------+
//| Test.mq5 |
//| Copyright 2015, Vasiliy Sokolov. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, Vasiliy Sokolov."
#property link "https://www.mql5.com"
#property version "1.00"
#include "ObjectsCustom.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
CObjectCustom *arrayObj[8];
arrayObj[0]=new CHuman();
CObjectCustom*obj=arrayObj[0];
CHuman *human=obj;
}
//+------------------------------------------------------------------+