src/AppConfig/FileAppConfigLoader.cpp
bool FileAppConfigLoader::LoadFileAppConfigConstants(FileAppConfigContainer& fileAppConfigContainer) {
    FileAppConfigErrorState fileAppConfigErrorState = loadFileAppConfigConstants(fileAppConfigContainer);
    bool result = false;
    if (fileAppConfigErrorState == FileAppConfigErrorState_NoError) {
        result = true;
    } else {
        std::string errorText = "ERROR while loading application configuration data from external file: ";
        if (fileAppConfigErrorState == FileAppConfigErrorState_FileOpenError) {
            errorText.append("File open error.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NotEqualsConstantsDeclsAndDefsCount) {
            errorText.append("Not equals count of constant declarations and initializations.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NoTypeForConstant) {
            errorText.append("There is no type for constant.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_TypeNotMatchingDeclaration) {
            errorText.append("Type in initialization is not matching type in declaration.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NoNameForConstant) {
            errorText.append("There is no name for constant.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NoValueForConstant) {
            errorText.append("There is no value for constant.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NameNotMatchingDeclaration) {
            errorText.append("Name in file with constants initializations not matching name in file with constants declarations.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_ConstantWrongValue) {
            errorText.append("ERROR: File open error.");
            result = false;
        } else {
            // Unknown error.
            errorText.append("Unknown error.");
            result = false;
        }
        LOG_ERROR(errorText);
    }

	result = checkLoadedValuesCorrectness(fileAppConfigContainer);
	return result;
}
// Load application configuration constants from external file to given
// container of file application configuration. There is assumed that there are
// two files with application configuration constants:
// - first file with constant declarations using DEFINE_CONSTANT macro
// (AppConfigDefinitions.h),
// - second file with constant definitions with initializations (AppConfigValues.ini)
// There has to be the same order of entries with constant values in second file,
// as in first file.
// Return true if success, false otherwise.
Load application configuration constants from external file to given
container of file application configuration. There is assumed that there are
two files with application configuration constants:
first file with constant declarations using DEFINE_CONSTANT macro
(AppConfigDefinitions.h),
second file with constant definitions with initializations (AppConfigValues.ini)
There has to be the same order of entries with constant values in second file,
as in first file.
Return true if success, false otherwise.
Load application configuration constants from external file to given container of file application configuration . There is assumed that there are two files with application configuration constants : first file with constant declarations using DEFINE_CONSTANT macro ( AppConfigDefinitions . h ) second file with constant definitions with initializations ( AppConfigValues . ini ) There has to be the same order of entries with constant values in second file as in first file . Return true if success false otherwise .
bool FileAppConfigLoader::LoadFileAppConfigConstants(FileAppConfigContainer& fileAppConfigContainer) {
    FileAppConfigErrorState fileAppConfigErrorState = loadFileAppConfigConstants(fileAppConfigContainer);
    bool result = false;
    if (fileAppConfigErrorState == FileAppConfigErrorState_NoError) {
        result = true;
    } else {
        std::string errorText = "ERROR while loading application configuration data from external file: ";
        if (fileAppConfigErrorState == FileAppConfigErrorState_FileOpenError) {
            errorText.append("File open error.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NotEqualsConstantsDeclsAndDefsCount) {
            errorText.append("Not equals count of constant declarations and initializations.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NoTypeForConstant) {
            errorText.append("There is no type for constant.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_TypeNotMatchingDeclaration) {
            errorText.append("Type in initialization is not matching type in declaration.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NoNameForConstant) {
            errorText.append("There is no name for constant.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NoValueForConstant) {
            errorText.append("There is no value for constant.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_NameNotMatchingDeclaration) {
            errorText.append("Name in file with constants initializations not matching name in file with constants declarations.");
            result = false;
        } else if (fileAppConfigErrorState == FileAppConfigErrorState_ConstantWrongValue) {
            errorText.append("ERROR: File open error.");
            result = false;
        } else {
            errorText.append("Unknown error.");
            result = false;
        }
        LOG_ERROR(errorText);
    }
	result = checkLoadedValuesCorrectness(fileAppConfigContainer);
	return result;
}
bool FileAppConfigLoader :: LoadFileAppConfigConstants ( FileAppConfigContainer & fileAppConfigContainer ) { FileAppConfigErrorState fileAppConfigErrorState = loadFileAppConfigConstants ( fileAppConfigContainer ) ; bool result = false ; if ( fileAppConfigErrorState == FileAppConfigErrorState_NoError ) { result = true ; } else { std :: string errorText = " " ; if ( fileAppConfigErrorState == FileAppConfigErrorState_FileOpenError ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_NotEqualsConstantsDeclsAndDefsCount ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_NoTypeForConstant ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_TypeNotMatchingDeclaration ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_NoNameForConstant ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_NoValueForConstant ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_NameNotMatchingDeclaration ) { errorText . append ( " " ) ; result = false ; } else if ( fileAppConfigErrorState == FileAppConfigErrorState_ConstantWrongValue ) { errorText . append ( " " ) ; result = false ; } else { errorText . append ( " " ) ; result = false ; } LOG_ERROR ( errorText ) ; } result = checkLoadedValuesCorrectness ( fileAppConfigContainer ) ; return result ; }
Load application configuration constants from external file to given
container of file application configuration.
Load application configuration constants from external file to given container of file application configuration .
// Unknown error.