Container for datalog strings.  
 More...
#include <JDatalogString.hh>
Container for datalog strings. 
Definition at line 172 of file JDatalogString.hh.
 
Constructor. 
- Parameters
 - 
  
    | buffer | list of valid source names  | 
  
   
Definition at line 180 of file JDatalogString.hh.
std::set< std::string > sources
 
 
 
 
Constructor. 
- Parameters
 - 
  
    | buffer | list of valid source names  | 
  
   
Definition at line 190 of file JDatalogString.hh.
std::set< std::string > sources
 
 
 
 
  
  
      
        
          | void JDB::JDatalogs_t::load  | 
          ( | 
          const std::string &  | 
          file_name | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Load message from input file. 
- Parameters
 - 
  
  
 
Definition at line 200 of file JDatalogString.hh.
  208         ifstream 
in(file_name.c_str());
 
  210         in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
  220         in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
  228         THROW(JFileOpenException, 
"Invalid file name extension " << file_name);
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
std::string getFilenameExtension(const std::string &file_name)
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
 
 
 
  
  
      
        
          | 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 240 of file JDatalogString.hh.
  248       for (
string buffer; 
getline(
in, buffer); ) {
 
  250         istringstream 
is(buffer);
 
  252         if (
is >> datalog.run >> datalog.utc >> datalog.source >> datalog.parameter) {
 
  258             while (
is.peek() != EOF && isspace((
char) 
is.peek())) { 
is.ignore(1); }
 
  264             if (
object.
sources.empty() || 
object.sources.count(datalog.source) != 0) {
 
  266               object.push_back(datalog);
 
  276           if (!
object.empty()) {
 
  277             object.rbegin()->data.append(
" " + buffer);
 
Auxiliary data structure for datalog strings. 
 
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line. 
 
std::set< std::string > sources
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
const JKeywords SOURCE_NAMES
Valid source names. 
 
const JKeywords IGNORED_PARAMETER_NAMES
Ignored parameter names. 
 
 
 
 
The documentation for this struct was generated from the following file: