Jpp  18.4.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
JPARSER::TStringHelper< true > Struct Template Reference

Specialisation of TStringHelper if TString exists. More...

#include <JParser.hh>

Static Public Member Functions

template<class T >
static std::istream & read (std::istream &in, T &object)
 Read object from input stream. More...
 
template<class T >
static std::istream & read (std::istream &in, std::vector< T > &object)
 Read std::vector of objects from input stream. More...
 

Detailed Description

template<>
struct JPARSER::TStringHelper< true >

Specialisation of TStringHelper if TString exists.

Definition at line 798 of file JParser.hh.

Member Function Documentation

template<class T >
static std::istream& JPARSER::TStringHelper< true >::read ( std::istream &  in,
T object 
)
inlinestatic

Read object from input stream.

Parameters
ininput stream
objectobject
Returns
input stream

Definition at line 808 of file JParser.hh.

809  {
810  return object.ReadLine(in);
811  }
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
Definition: JCanberra.sh:48
template<class T >
static std::istream& JPARSER::TStringHelper< true >::read ( std::istream &  in,
std::vector< T > &  object 
)
inlinestatic

Read std::vector of objects from input stream.

Parameters
ininput stream
objectobject
Returns
input stream

Definition at line 821 of file JParser.hh.

822  {
823  for (std::string buffer; in >> buffer; ) {
824  object.push_back(buffer.c_str());
825  }
826 
827  return in;
828  }
then awk string
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
Definition: JCanberra.sh:48

The documentation for this struct was generated from the following file: