362c1f4c3b5ce9e3fce11167a51fbe4cdb2174de
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

src/noarch/SettingFile.h  1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

src/common/SettingFile.h  2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

src/noarch/SettingFile.h  3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
src/noarch/SettingFile.h  4)    a blinkenarea.org project */
src/noarch/SettingFile.h  5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/SettingFile.h  6) #ifndef BLINKER_SETTINGFILE_H
src/noarch/SettingFile.h  7) #define BLINKER_SETTINGFILE_H
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

src/noarch/SettingFile.h  8) 
src/noarch/SettingFile.h  9) #include <string>
src/noarch/SettingFile.h 10) 
src/noarch/SettingFile.h 11) #include "File.h"
src/noarch/SettingFile.h 12) 
src/noarch/SettingFile.h 13) namespace Blinker {
src/noarch/SettingFile.h 14) 
src/noarch/SettingFile.h 15) /// file containting a single setting
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/SettingFile.h 16) template<typename TYPE>
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

src/noarch/SettingFile.h 17) class SettingFile: public File
src/noarch/SettingFile.h 18) {
src/noarch/SettingFile.h 19) public:
src/noarch/SettingFile.h 20)   /**
src/noarch/SettingFile.h 21)    * @brief constructor from path
src/noarch/SettingFile.h 22)    * @param[in] path path to file
src/noarch/SettingFile.h 23)    */
src/noarch/SettingFile.h 24)   SettingFile(const std::string &path);
src/noarch/SettingFile.h 25) 
src/noarch/SettingFile.h 26)   /**
src/noarch/SettingFile.h 27)    * @brief constructor from basic file
src/noarch/SettingFile.h 28)    * @param[in] file basic file object
src/noarch/SettingFile.h 29)    */
src/noarch/SettingFile.h 30)   SettingFile(const File &file);
src/noarch/SettingFile.h 31) 
src/noarch/SettingFile.h 32)   /**
src/noarch/SettingFile.h 33)    * @brief assignment operator
src/noarch/SettingFile.h 34)    * @param[in] file basic file object
src/noarch/SettingFile.h 35)    */
src/noarch/SettingFile.h 36)   const SettingFile & operator=(const File &file);
src/noarch/SettingFile.h 37) 
src/noarch/SettingFile.h 38) public:
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/SettingFile.h 39)   /// update, i.e. (re-)read file
src/noarch/SettingFile.h 40)   void update();
src/noarch/SettingFile.h 41) 
src/noarch/SettingFile.h 42) protected:
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

src/noarch/SettingFile.h 43)   /**
src/noarch/SettingFile.h 44)    * @brief get setting as string
src/noarch/SettingFile.h 45)    * @param[out] val setting read from file
src/noarch/SettingFile.h 46)    * @return if setting was successfully read from file
src/noarch/SettingFile.h 47)    */
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/SettingFile.h 48)   bool getStr(std::string& val) const;
src/noarch/SettingFile.h 49) 
src/noarch/SettingFile.h 50) public:
src/noarch/SettingFile.h 51)   TYPE m_obj;   ///< setting object read from file
src/noarch/SettingFile.h 52)   bool m_valid; ///< if setting object could be read and parsed
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

src/noarch/SettingFile.h 53) }; // class SettingFile
src/noarch/SettingFile.h 54) 
src/noarch/SettingFile.h 55) } // namespace Blinker
src/noarch/SettingFile.h 56) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/SettingFile.h 57) #endif // #ifndef BLINKER_SETTINGFILE_H