advgetopt 2.0.47
Parse complex command line arguments and configuration files in C++.
Namespaces | Typedefs | Functions | Variables
conf_file.cpp File Reference

Implementation of the option_info class. More...

#include "advgetopt/conf_file.h"
#include "advgetopt/exception.h"
#include "advgetopt/utils.h"
#include <snapdev/join_strings.h>
#include <snapdev/mkdir_p.h>
#include <snapdev/safe_variable.h>
#include <snapdev/string_replace_many.h>
#include <snapdev/tokenize_string.h>
#include <snapdev/trim_string.h>
#include <cppthread/guard.h>
#include <cppthread/log.h>
#include <cppthread/mutex.h>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <string.h>
#include <sys/stat.h>
#include <snapdev/poison.h>
Include dependency graph for conf_file.cpp:

Go to the source code of this file.

Namespaces

namespace  advgetopt
 The advgetopt environment to parse command line options.
 
namespace  advgetopt::anonymous_namespace{conf_file.cpp}
 Private conf_file data.
 

Typedefs

typedef std::map< std::string, conf_file::pointer_tadvgetopt::anonymous_namespace{conf_file.cpp}::conf_file_map_t
 A map of configuration files.
 

Functions

cppthread::mutex & advgetopt::get_global_mutex ()
 Get a global mutex.
 
bool advgetopt::iswspace (int c)
 Returns true if c is considered to be a whitespace.
 

Variables

conf_file_map_t advgetopt::anonymous_namespace{conf_file.cpp}::g_conf_files = conf_file_map_t()
 The configuration files.
 

Detailed Description

This is the implementation of the class used to load and save configuration files.

Warning
This version uses the advgetopt::conf_file which sorts the fields it reads, therefore, the output is going to be correct, but possibly sorted in a "funny way", especially if you keep the comments and some of the values are commented out.

Definition in file conf_file.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.