Major Update:
- Implement new ApplicationCore:
- Manage Tools: Log, DataTree, JSONparser & Selector
- Load configuration, Manage FunctionBlocks
- FunctionCore & dirived classes, SignalCore:
- affects: SelectableCore, DeviceCore, FileCore, WatchdogCore
- Do not pass Log()
- Define and pass Type
- Update/reduce included headers
- Use ProcessName and Application global vars
- Get Log, DataTree from Application
- Use virtual Init() function to set must have Channels/Handles
- DataTreeCore:
- Bug fix: Check if child members exist and destroy in SetValuePtr()
- Add method GetFirstChild with BaseMember & Path
- Bug fix: do not use RootMember if no Parent in GetChildxxx() methods
- SignalCore, SelectCore:
- Use Application->Log()
- FunctionCore:
- Add itself to Application (function list)
- Add parameter: LinkConfigMember, Type
- Use virtual LoadConfigData() to configure from DataTree
- Rename methods: LoadConfig() -> InitConfig(),
InitLogging() -> SetLogParam(), SetDebugLevel() -> SetLogLevel()
- Add method: GetType(), LoadChannelLinkData(), InitChannelLinks()
- Modify LinkIn/OutputChannel() to use name for InFunction, not pointer
- SelectableCore & Dirived classes:
- Affects DeviceCore & WatchdogClient
- Rename parameter: Select -> Selector, BaseMember -> ConfigMember
- Get Selector from Application->Selector
- Change Handles JSON structure from Array to Key:Value pairs
- Bug fix: check if Selector exist during Input()
- Bug fix: do not set PortNo if not exist
This commit is contained in:
@@ -138,7 +138,7 @@ protected:
|
||||
|
||||
public:
|
||||
// Life Cycle
|
||||
CSelect( long SelectTimeout, CLogCore * pLog, EDebugLevel pLogLevel );
|
||||
CSelect( long SelectTimeout, EDebugLevel pLogLevel );
|
||||
~CSelect();
|
||||
|
||||
// Parameters
|
||||
@@ -163,7 +163,7 @@ protected:
|
||||
THandle * FirstHandle;
|
||||
|
||||
// Select interface
|
||||
CSelect * Select;
|
||||
CSelect * Selector;
|
||||
|
||||
// Configuration
|
||||
virtual bool LoadConfigData();
|
||||
@@ -210,7 +210,7 @@ protected:
|
||||
|
||||
public:
|
||||
// Life Cycle
|
||||
CSelectableCore( const char * Name, CSelect * pSelect, CLogCore * pLog );
|
||||
CSelectableCore( const char * Name, const char * pType = "Selectable" );
|
||||
virtual ~CSelectableCore();
|
||||
|
||||
// Finding Handles
|
||||
|
||||
Reference in New Issue
Block a user