Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Static Public Member Functions | List of all members
JPARSER::TStringHelper< false > Struct Reference

Specialisation of TStringHelper if TString does not exist. 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

Specialisation of TStringHelper if TString does not exist.

Definition at line 944 of file JParser.hh.

Member Function Documentation

◆ read() [1/2]

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

Read object from input stream.


This method thrown an error.

Parameters
ininput stream
objectobject
Returns
input stream

Definition at line 955 of file JParser.hh.

956  {
957  THROW(JParserException, "JParser: invalid data type TString (include TString.h before JParser.hh)");
958  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:712
Exception when parsing a value.
Definition: JException.hh:558

◆ read() [2/2]

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

Read std::vector of objects from input stream.


This method thrown an error.

Parameters
ininput stream
objectobject
Returns
input stream

Definition at line 969 of file JParser.hh.

970  {
971  THROW(JParserException, "JParser: invalid data type TString (include TString.h before JParser.hh)");
972  }

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