MobinMQL/Include/sampleclass.mqh

70 lines
2.5 KiB
MQL5

/**
* @file Class_Name.mqh
* @author Mobin Zarekar (plusonefx.net)
* @copyright Copyright (c) 2025 Mobin Zarekar
*
* @brief
* This is a template for creating a new class in the Expert Framework.
*
* @details
* Here the details of the file should be added.
*/
//+================================================================================================+
//| Class_Name.mqh |
//| Copyright 2025, Mobin Zarekar |
//| https://www.plusonefx.net/ |
//+================================================================================================+
/*=========================================== Includes ===========================================*/
#include <../Libraries/ExpertFramework/V5.00/Global/ErrorHandeling/Models/Logs.mqh>
/*=========================================== class ===========================================*/
/**
* @class Class_Name
* @brief Brief description of the class.
*
* @details
* Describe the purpose of the class and its members here.
*/
class Class_Name
{
protected:
/*---------------------------------------- Parameters ----------------------------------------*/
CLog *m_log;
/*---------------------------------------- Methods ----------------------------------------*/
private:
/*---------------------------------------- Parameters ----------------------------------------*/
/*---------------------------------------- Methods ----------------------------------------*/
public:
/*---------------------------------------- Parameters ----------------------------------------*/
/*---------------------------------------- Methods ----------------------------------------*/
/*________________________________________ Getters ________________________________________*/
/*________________________________________ Setters ________________________________________*/
/*______________________________ Constructors and Destructor ______________________________*/
Class_Name(); ///< constructor
~Class_Name(); ///< destructor
};
/*======================================= Implementations =======================================*/
/**
* @brief Construct a new Class_Name::Class_Name object
*
*/
Class_Name::Class_Name() {
m_log = CLog::GetLog();
};
/**
* @brief Destroy the Class_Name::Class_Name object
*
*/
Class_Name::~Class_Name() {};