Container for datalog strings.  
 More...
#include <JDatalogString.hh>
Container for datalog strings. 
Definition at line 173 of file JDatalogString.hh.
◆ JDatalogs_t() [1/2]
Constructor. 
- Parameters
- 
  
    | buffer | list of valid source names |  
 
Definition at line 181 of file JDatalogString.hh.
std::set< std::string > sources
 
 
 
◆ JDatalogs_t() [2/2]
  
  | 
        
          | JDB::JDatalogs_t::JDatalogs_t | ( | const std::set< std::string > & | buffer | ) |  |  | inline | 
 
Constructor. 
- Parameters
- 
  
    | buffer | list of valid source names |  
 
Definition at line 191 of file JDatalogString.hh.
 
 
◆ load()
  
  | 
        
          | void JDB::JDatalogs_t::load | ( | const std::string & | file_name | ) |  |  | inline | 
 
Load message from input file. 
- Parameters
- 
  
  
Definition at line 201 of file JDatalogString.hh.
  209         ifstream in(file_name.c_str());
 
  211         in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
  221         in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for opening of file.
std::string getFilenameExtension(const std::string &file_name)
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
 
 
◆ operator>>
  
  | 
        
          | std::istream& operator>> | ( | std::istream & | in, |  
          |  |  | JDatalogs_t & | object |  
          |  | ) |  |  |  | friend | 
 
Read message from input. 
- Parameters
- 
  
    | in | input stream |  | object | messages |  
 
- Returns
- input stream 
Definition at line 241 of file JDatalogString.hh.
  249       for (
string buffer; 
getline(in, buffer); ) {
 
  251         istringstream is(buffer);
 
  259             while (is.peek() != EOF && isspace((
char) is.peek())) { is.ignore(1); }
 
  265             if (
object.
sources.empty() || 
object.sources.count(datalog.
source) != 0) {
 
  267               object.push_back(datalog);
 
  277           if (!
object.empty()) {
 
  278             object.rbegin()->data.append(
" " + buffer);
 
const JKeywords IGNORED_PARAMETER_NAMES
Ignored parameter names.
const JKeywords SOURCE_NAMES
Valid source names.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Auxiliary data structure for datalog strings.
 
 
 
◆ sources
  
  | 
        
          | std::set<std::string> JDB::JDatalogs_t::sources |  | protected | 
 
 
The documentation for this struct was generated from the following file: