Important Update:
- DataTreeCore: - Rename all Get/SetChild...() methods to Get/SetMem...() - Update all other objects with new methods
This commit is contained in:
@@ -152,7 +152,7 @@ bool CApplication::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" ))
|
||||
@@ -193,7 +193,7 @@ bool CApplication::LoadConfigData()
|
||||
SetLogParam( pLogLevel, pLogOutput );
|
||||
|
||||
// Load Address List
|
||||
if ((AddressFile = (char*)ConfigMember->GetChildStr( "AddressList/Path", NULL )))
|
||||
if ((AddressFile = (char*)ConfigMember->GetMemStr( "AddressList/Path", NULL )))
|
||||
{
|
||||
if (JSONparser->ReadFromFile( "address", AddressFile )) {
|
||||
if (Log) Log->Message( dlLow, dlLow, "%s: Address file loaded (%s)", ProcessName, AddressFile );
|
||||
@@ -207,7 +207,7 @@ bool CApplication::LoadConfigData()
|
||||
if ((TempMember = ConfigMember->GetMember( "Selector" )))
|
||||
{
|
||||
// Create Selector
|
||||
Selector = new CSelect( (int)TempMember->GetChildInt( "Wait", 5, true ), LogLevel );
|
||||
Selector = new CSelect( (int)TempMember->GetMemInt( "Wait", 5, true ), LogLevel );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -262,7 +262,7 @@ bool CApplication::InitFunctions( const char * pConfigPath )
|
||||
while (TempMember)
|
||||
{
|
||||
// Get function parameters
|
||||
Type = (char*)TempMember->GetChildStr( "Type", "Custom", true );
|
||||
Type = (char*)TempMember->GetMemStr( "Type", "Custom", true );
|
||||
|
||||
// Get or create function
|
||||
if (!strcasecmp( Type, "WatchdogClient" )) {
|
||||
|
||||
Reference in New Issue
Block a user