Jpp  19.1.0
the software that should make you happy
Public Member Functions | Friends | List of all members
JDATABASE::JDBString Struct Reference

Wrapper class to read string until end-of-line. More...

#include <JDBString.hh>

Inheritance diagram for JDATABASE::JDBString:

Public Member Functions

 JDBString (const std::string &buffer="")
 Copy constructor. More...
 
 ClassDefNV (JDBString, 1)
 

Friends

std::istream & operator>> (std::istream &in, JDBString &object)
 Read database string from input stream. More...
 

Detailed Description

Wrapper class to read string until end-of-line.

Definition at line 20 of file JDBString.hh.

Constructor & Destructor Documentation

◆ JDBString()

JDATABASE::JDBString::JDBString ( const std::string &  buffer = "")
inline

Copy constructor.

Parameters
bufferbuffer

Definition at line 28 of file JDBString.hh.

28  :
29  std::string(buffer)
30  {}

Member Function Documentation

◆ ClassDefNV()

JDATABASE::JDBString::ClassDefNV ( JDBString  ,
 
)

Friends And Related Function Documentation

◆ operator>>

std::istream& operator>> ( std::istream &  in,
JDBString object 
)
friend

Read database string from input stream.

Parameters
ininput stream
objectdatabase string
Returns
input stream

Definition at line 39 of file JDBString.hh.

40  {
41  using namespace std;
42 
43  return getline(in, object);
44  }
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Definition: JString.hh:478
Definition: JSTDTypes.hh:14

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