73 #if ALIB_DEBUG && !ALIB_DEBUG_ASSERTION_PRINTABLES
75 "Export or import sequence not completed before deleting the INI-file.\n"
76 "Filename of previous sequence: {}",
iniFile->FileName )
121 "Export or import sequence not completed before starting a new one.\n"
122 "Previous filename: ",
iniFile->FileName )
156 ALIB_ERROR(
"VARIABLES",
"No INI-file loaded when trying to end import/export." )
171 ALIB_ERROR(
"VARIABLES",
"No INI-file loaded when trying to import data." )
203 auto remainder= cursor.GoTo(path);
204 if( remainder.IsNotEmpty() ) {
205 ALIB_WARNING(
"VARIABLES",
"Configuration variable path \"{}\" to export not found.",
239 auto remainder= cursor.GoTo(path);
240 if( remainder.IsNotEmpty() ) {
307 const NString& resourceCategory,
308 const NString& resourceNamePrefix );
317 const NString& resourceNamePrefix ) {
320 resourceNamePrefix );
330 "No INI-file loaded when trying to access it." )
#define ALIB_WARNING(domain,...)
#define ALIB_ASSERT_WARNING(cond, domain,...)
#define ALIB_ERROR(domain,...)
#define ALIB_ASSERT_ERROR(cond, domain,...)
const Enum & Type() const
NCString ResourceCategory
ResourcePool & GetResourcePool()
int ImportStart(const Path &path)
void ExportEnd()
Closes and deletes the internal iniFile instance without writing an opened INI-file.
String DefaultCommentPrefix
int AddResourcedSectionComments(ResourcePool &resourcePool, const NString &resourceCategory, const NString &resourceNamePrefix)
int ExportSubTree(Configuration::Cursor cursor, bool directChildrenOnly=false)
IniFile * iniFile
The INI-file. Created with methods #"ImportStart" and #"ExportStart".
bool Export(const String &path)
bool SetWriteBackFlag(const String &path)
bool DidNotExistOrWasEmpty
Configuration & configuration
The configuration to work with. Set with construction.
int ImportSection(const String §ionName)
void ImportEnd()
Closes and deletes the internal iniFile instance.
int importSection(IniFile::Section §ion)
Priority priority
The priority to use to define variables. Set with construction.
int ExportStart(const Path &path)
int AddResourcedSectionComments(resources::ResourceHolder &resourceHolder, const NString &resourceNamePrefix)
bool Export(const Variable &var)
int ExportSubTree(const String &path, bool directChildrenOnly=false)
IniFile::Handle SearchEntry(const Variable &variable)
IniFileFeeder(Configuration &pConfiguration, Priority pPriority=Priority::ConfigFile)
void ExportEnd(const Path &path)
@ ErrorOpeningFile
File not found when reading.
strings::TString< nchar > NString
Type alias in namespace #"%alib".
resources::ResourcePool ResourcePool
Type alias in namespace #"%alib".
variables::Variable Variable
Type alias in namespace #"%alib".
strings::TString< character > String
Type alias in namespace #"%alib".
system::Path Path
Type alias in namespace #"%alib".
exceptions::Exception Exception
Type alias in namespace #"%alib".
variables::IniFileFeeder IniFileFeeder
Type alias in namespace #"%alib".
A pair of pointers to a section and an entry in the section.
A section of the INI-file.