Jpp  15.0.3
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 782 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 792 of file JParser.hh.

793  {
794  return object.ReadLine(in);
795  }
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
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 805 of file JParser.hh.

806  {
807  for (std::string buffer; in >> buffer; ) {
808  object.push_back(TString(buffer.c_str()));
809  }
810 
811  return 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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42

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