47 DECLARE_EXCEPTION( ExcAbsOutputPath, <<
"Can not set absolute path " << EI_Path::qval <<
" for an output file." );
59 : abs_file_path_(
"/__NO_FILE_NAME_GIVEN__"),
60 file_type_(output_file)
83 static void set_io_dirs(
const string working_dir,
const string root_input,
const string input,
const string output);
88 inline operator string()
const 89 {
return abs_file_path_;}
105 static void add_placeholder(
string key,
string value);
110 static const string get_absolute_working_dir();
114 {
return abs_file_path_ == string(other); }
121 void create_output_dir();
127 void substitute_value();
133 static bool is_absolute_path(
const string path);
139 static void create_dir(
string dir);
145 static void create_canonical_path(
const string working_dir,
const string output);
string abs_file_path_
Final absolute path to the file.
FileType
Possible types of file.
#define DECLARE_EXCEPTION(ExcName, Format)
Macro for simple definition of exceptions.
bool operator==(const Null &, const Null &)
static string root_dir
Prefix path for input files (directory of the main input file).
Dedicated class for storing path to input and output files.
static std::map< string, string > placeholder
dictionary of placeholders
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.
static string output_dir
Prefix path for output files.
FileType file_type_
File type.