Important Update;
- ApplicationCore:
- Minor log updates
- FunctionCore:
- Initialise structs & object params in declaration
- DeviceCore:
- Update logs with more consistent structure
- Initialise structs & object params in declaration
- Implemented DeviceType templates
- Added Add/Get/Destroy methods
- Load from config or separate template file
- Build Devices/Params from template
- Implemented ParamGroups
- Added Add/Get/Destroy methods
- Load with DeviceTypes
- Added JSON parser to read separate template files
- Bug fix: Getxxxx() methods
This commit is contained in:
@@ -34,21 +34,11 @@ CFunctionCore::CFunctionCore( const char * pName, const char * pType ) : Type( p
|
||||
Name = (char*)malloc( strlen(pName)+1 );
|
||||
strcpy( Name, pName );
|
||||
}
|
||||
else {
|
||||
Name = NULL;
|
||||
}
|
||||
|
||||
// Channels
|
||||
FirstChannel = NULL;
|
||||
|
||||
// Logging
|
||||
Log = Application->Log;
|
||||
LogLevel = dlNone;
|
||||
LogOutput = loNormal;
|
||||
|
||||
// Stored output
|
||||
StoredOutput = NULL;
|
||||
StoredOutputLen = 0;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user