ifw-core  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParameterFile.hpp
Go to the documentation of this file.
1 
9 #ifndef IWF_CTD_FILE_PARAMETER_FILE_HPP_
10 #define IWF_CTD_FILE_PARAMETER_FILE_HPP_
11 
12 #include "ctd/defines/defines.hpp"
14 
17 
18 namespace ctd {
19  namespace file {
20 
23  public:
24 
25  ParameterFile();
26 
28  ParameterFile(const ParameterFile& source);
29 
31 
33  virtual void Load(const std::string& filename,
34  const bool merge = false);
44  virtual void LoadUser(const std::string& filename,
45  const bool merge = false);
46 
48  const std::string& GetProcFile() const;
49 
51  ParameterFile& operator = (const ParameterFile& source);
52 
53  protected:
54  // File being processed.
55  std::string m_proc_file;
56 
57  // Currently loaded files.
58  std::vector<std::string> m_loaded_files;
59 
60  void _Copy(const ParameterFile& source);
61 
62  private:
63 
64  };
65 
66  }
67 }
68 
69 #endif // !IWF_CTD_FILE_PARAMETER_FILE_HPP_
void _Copy(const ParameterFile &source)
Definition: ParameterFile.cpp:124
Class to handle a set of parameters.
Definition: ParameterSet.hpp:21
ParameterFile & operator=(const ParameterFile &source)
Assignment operator.
Definition: ParameterFile.cpp:30
std::string m_proc_file
Definition: ParameterFile.hpp:55
Common definitions.
virtual void Load(const std::string &filename, const bool merge=false)
Load a file containing parameters.
Definition: ParameterFile.cpp:108
std::vector< std::string > m_loaded_files
Definition: ParameterFile.hpp:58
~ParameterFile()
Definition: ParameterFile.cpp:24
virtual void LoadUser(const std::string &filename, const bool merge=false)
Definition: ParameterFile.cpp:39
Parameter class to handle a set of parameters.
const std::string & GetProcFile() const
Return reference to file being processed (loaded).
Definition: ParameterFile.cpp:132
Class to handle a set of parameters.
Definition: ParameterFile.hpp:22
ParameterFile()
Definition: ParameterFile.cpp:12