Jpp test-rotations-old-533-g2bdbdb559
the software that should make you happy
Loading...
Searching...
No Matches
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 ()
 Default constructor.
 
 JDBString (const std::string &buffer)
 Copy constructor.
 
 JDBString (const char *const buffer)
 Copy constructor.
 
 ClassDefNV (JDBString, 1)
 

Friends

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

Detailed Description

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

Definition at line 20 of file JDBString.hh.

Constructor & Destructor Documentation

◆ JDBString() [1/3]

JDATABASE::JDBString::JDBString ( )
inline

Default constructor.

Definition at line 26 of file JDBString.hh.

26 :
27 std::string()
28 {}

◆ JDBString() [2/3]

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

Copy constructor.

Parameters
bufferbuffer

Definition at line 35 of file JDBString.hh.

35 :
36 std::string(buffer)
37 {}

◆ JDBString() [3/3]

JDATABASE::JDBString::JDBString ( const char *const buffer)
inline

Copy constructor.

Parameters
bufferbuffer

Definition at line 44 of file JDBString.hh.

44 :
45 std::string(buffer)
46 {}

Member Function Documentation

◆ ClassDefNV()

JDATABASE::JDBString::ClassDefNV ( JDBString ,
1  )

Friends And Related Symbol 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 55 of file JDBString.hh.

56 {
57 using namespace std;
58
59 return getline(in, object);
60 }
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Definition JString.hh:478

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