Important Update:
- DataTreeCore: - Rename all Get/SetChild...() methods to Get/SetMem...() - Update all other objects with new methods
This commit is contained in:
@@ -120,7 +120,7 @@ bool CFunctionCore::LoadConfigData()
|
||||
|
||||
// Get debug level
|
||||
pLogLevel = dlNone;
|
||||
TempStr = (char*)ConfigMember->GetChildStr( "Log/Level", "Medium", true );
|
||||
TempStr = (char*)ConfigMember->GetMemStr( "Log/Level", "Medium", true );
|
||||
if (TempStr)
|
||||
{
|
||||
if (!strcasecmp( TempStr, "Low" ))
|
||||
@@ -163,13 +163,13 @@ bool CFunctionCore::LoadConfigData()
|
||||
SetLogParam( pLogLevel, pLogOutput );
|
||||
|
||||
// Load Channels
|
||||
TempMember = ConfigMember->GetFirstChild( "Channels" );
|
||||
TempMember = ConfigMember->GetMemFirstChild( "Channels" );
|
||||
while (TempMember)
|
||||
{
|
||||
if (TempMember->GetName()) {
|
||||
AddChannel( TempMember->GetName(),
|
||||
TempMember->GetChildBool( "InputEnabled", true, true ),
|
||||
TempMember->GetChildBool( "OutputEnabled", false, true ));
|
||||
TempMember->GetMemBool( "InputEnabled", true, true ),
|
||||
TempMember->GetMemBool( "OutputEnabled", false, true ));
|
||||
}
|
||||
|
||||
// Next
|
||||
@@ -197,9 +197,9 @@ bool CFunctionCore::LoadChannelLinkData()
|
||||
{
|
||||
// Get Parameters
|
||||
LinkOutputChannel( Channel->Name,
|
||||
FunctionMember->GetChildStr( "Function" ),
|
||||
FunctionMember->GetChildStr( "Channel" ),
|
||||
FunctionMember->GetChildBool( "Bidirectional" ) );
|
||||
FunctionMember->GetMemStr( "Function" ),
|
||||
FunctionMember->GetMemStr( "Channel" ),
|
||||
FunctionMember->GetMemBool( "Bidirectional" ) );
|
||||
// Next
|
||||
FunctionMember = FunctionMember->GetNextPeer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user