Important update:
- DataTree->GetStr return Member->Value or NULL if not found - Rename DeviceCore EDataType to EMBDataType, avoid conflict with JSONpaser - Add DataTree to FunctionCore with LoadConfig() method - Change ProcessName to char * (from char[]) - JSONparse: - Rename RootPath to BasePath on all methods to reduce confusion - Allow FilePath to be NULL, add '/' if not present - Fixed Parsing sequence in ParseObject & ParseArray
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
// redA Libraries
|
||||
#include "LogCore.h"
|
||||
#include "BufferCore.h"
|
||||
#include "DataTreeCore.h"
|
||||
|
||||
// Standard C/C++ Libraries
|
||||
#include <string.h>
|
||||
@@ -52,6 +53,10 @@ protected:
|
||||
// Function Definition
|
||||
char * Name;
|
||||
|
||||
// Configuration
|
||||
CDataTree * DataTree;
|
||||
TDataMember * BaseMember;
|
||||
|
||||
// Channels
|
||||
TChannel * FirstChannel;
|
||||
|
||||
@@ -77,6 +82,8 @@ public:
|
||||
CFunctionCore( const char * FunctionName, CLogCore * pLog, EDebugLevel pDebugLevel, int pOuputDisplay );
|
||||
virtual ~CFunctionCore();
|
||||
|
||||
virtual bool LoadConfig( CDataTree * DataTree, const char * BasePath );
|
||||
|
||||
// Miscellaneous
|
||||
inline const char * GetName() { return Name; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user