18 #ifndef MTEMPLATE_PLATFORM_H
19 #define MTEMPLATE_PLATFORM_H
23 #ifdef MTEMPLATE_EXPORTS
24 #define MTEMPLATE_API __declspec(dllexport)
26 #define MTEMPLATE_API __declspec(dllimport)
30 #ifndef MTEMPLATE_EXPORTS
43 #pragma warning(disable: 4251)
49 #include "MTemplateItem.h"
71 bool getPlatformEnabled();
72 bool getEnableErrorCheck();
73 bool getEnabledByDefault();
74 int getFramesFloating();
75 int getDetectionLogic();
76 std::string getDetectionLogicProcessName();
77 std::string getDetectionLogicChildProcessName();
78 int getDetectionLogic(
const std::string& task);
79 std::string getDetectionLogicProcessName(
const std::string& task);
80 std::string getDetectionLogicChildProcessName(
const std::string& task);
82 bool getHideProcessWindow();
83 bool getSampleEnvironmentFromBat();
85 void setPlatformEnabled(
bool _platformEnabled);
86 void setEnableErrorCheck(
bool _enableErrorCheck);
87 void setEnabledByDefault(
bool _enabledByDefault);
88 void setFramesFloating(
int _framesFloating);
89 void setDetectionLogic(
int _detectionLogic);
90 void setDetectionLogicProcessName(
const std::string& _detectionLogicProcessName);
91 void setDetectionLogicChildProcessName(
const std::string& _detectionLogicChildProcessName);
92 void setDetectionLogic(
const std::string& task,
int _detectionLogic);
93 void setDetectionLogicProcessName(
const std::string& task,
const std::string& _detectionLogicProcessName);
94 void setDetectionLogicChildProcessName(
const std::string& task,
const std::string& _detectionLogicChildProcessName);
96 void setHideProcessWindow(
bool _hideProcessWindow);
97 void setSampleEnvironmentFromBat(
bool _sampleEnvironmentFromBat);
99 void clearClientConfigurationItems();
101 std::vector<MTemplateItem*>* getClientConfigurationItems();
104 bool platformEnabled;
105 bool enableErrorCheck;
106 bool enabledByDefault;
107 bool hideProcessWindow;
108 bool sampleEnvironmentFromBat;
110 std::map<std::string,int> detectionLogic;
111 std::map<std::string, std::string> detectionLogicProcessName;
112 std::map<std::string, std::string> detectionLogicChildProcessName;
113 std::vector<MTemplateItem*> clientAttributes;
114 void encodeTree(
void* pt, std::string(*encodeFunc)(
const std::string &),
int encoding,
void* fields, std::vector<std::string>* filters);
Class holding a template field item.