- Timestamp:
- 06/09/10 19:36:07 (14 years ago)
- Location:
- library/bdm
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/loggers.cpp
r1064 r1069 48 48 49 49 void memlog::from_setting ( const Setting &set ) { 50 root::from_setting( set ); 50 51 UI::get ( maxlen, set, "maxlen", UI::compulsory ); 51 52 UI::get ( filename, set, "filename" ); -
library/bdm/base/loggers.h
r1064 r1069 20 20 using std::string; 21 21 22 /*! 23 * Logging into matrices in data format in memory, optionally persisted into a file. 22 /*! \brief Logging into matrices in data format in memory, optionally persisted into a file. 24 23 */ 25 24 class memlog : public logger { … … 86 85 87 86 88 /*! \brief UI for memlog87 /*! Create object from the following structure 89 88 90 89 \code 91 logger = { 92 class = "memlog"; 93 filename = "file_name"; // resulting filename with vectors in it format and setting in cfg 94 maxlen = 100; // size of memory buffer 95 } 90 class = 'memlog'; 91 maxlen = []; % size of memory buffer 92 --- optional fields --- 93 filename = 'file_name'; % resulting filename with vectors in itpp format and setting in cfg 94 --- inherited fields --- 95 bdm::logger::from_setting 96 96 \endcode 97 97 */ … … 136 136 cout << endl; 137 137 } 138 /*! \brief UI for stdlog 139 138 /*! Create object from the following structure 140 139 \code 141 logger = { 142 class = "stdlog"; // no parameterization needed 143 } 140 class = 'stdlog'; % no parameterization needed 144 141 \endcode 145 142 */ … … 183 180 void write_buffers ( int Len ); 184 181 185 /*! \brief UI for dirfilelog (Kst file format)182 /*! Create object from the following structure 186 183 \code 187 logger = {188 class = "dirfilelog";189 dirname = "directory_for_files"; // resulting files will be stored there190 maxlen = 100; // size of memory buffer, when full results are written to disk191 }184 class = 'dirfilelog'; 185 dirname = 'directory_for_files'; % resulting files will be stored there 186 maxlen = []; % size of memory buffer, when full results are written to disk 187 --- inherited fields --- 188 bdm::memlog::from_setting 192 189 \endcode 193 190 */ -
library/bdm/mex/mex_logger.h
r1064 r1069 42 42 } 43 43 44 //! Logger storing results into an mxArray44 //! \brief Logger storing results into an mxArray 45 45 class mexlog : public memlog { 46 46 public: … … 74 74 return tmp; 75 75 } 76 void from_setting ( const Setting &root ) { 77 maxlen = root["maxlen"]; 76 77 /*! Create object from the following structure 78 79 \code 80 class = 'mexlog'; 81 maxlen = []; % size of memory buffer 82 \endcode 83 */ 84 void from_setting ( const Setting &set ) { 85 UI::get ( maxlen, set, "maxlen", UI::compulsory ); 78 86 } 87 79 88 Config& _setting_conf() { 80 89 return setting_conf; -
library/bdm/stat/merger.h
r1068 r1069 165 165 eEmp& _Smp() { 166 166 return eSmp; 167 }168 169 170 167 } 171 168