Jpp  17.3.0-rc.2
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 799 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 809 of file JParser.hh.

810  {
811  return object.ReadLine(in);
812  }
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:46
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 822 of file JParser.hh.

823  {
824  for (std::string buffer; in >> buffer; ) {
825  object.push_back(TString(buffer.c_str()));
826  }
827 
828  return in;
829  }
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:46

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