Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JPARSER::TStringHelper< true > Struct 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.
 
template<class T >
static std::istream & read (std::istream &in, std::vector< T > &object)
 Read std::vector of objects from input stream.
 

Detailed Description

Specialisation of TStringHelper if TString exists.

Definition at line 979 of file JParser.hh.

Member Function Documentation

◆ read() [1/2]

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 989 of file JParser.hh.

990 {
991 return object.ReadLine(in);
992 }

◆ read() [2/2]

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 1002 of file JParser.hh.

1003 {
1004 for (std::string buffer; in >> buffer; ) {
1005 object.push_back(buffer.c_str());
1006 }
1007
1008 return in;
1009 }

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