DbiString Class Reference

#include <DbiString.h>

Inheritance diagram for DbiString:
DbiSqlContext

List of all members.

Public Member Functions

 DbiString ()
 DbiString (const Char_t *str)
 DbiString (const std::string &str)
virtual ~DbiString ()
const Char_t * c_str () const
const std::string & GetString () const
DbiStringoperator<< (Int_t data)
DbiStringoperator<< (UInt_t data)
DbiStringoperator<< (Float_t data)
DbiStringoperator<< (Char_t data)
DbiStringoperator<< (const Char_t *data)
DbiStringoperator<< (const std::string &data)
void Clear ()
std::string & GetString ()

Private Attributes

std::string fString
 The underlying string.

Detailed Description

Id
DbiString.h,v 1.7 2006/08/08 10:51:32 west Exp

Definition at line 36 of file DbiString.h.


Constructor & Destructor Documentation

DbiString::DbiString (  ) 

Definition at line 22 of file DbiString.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00023 {
00024 //
00025 //
00026 //  Purpose:  Default constructor
00027 //
00028 //  Arguments:  None.
00029 //
00030 //  Return:    n/a
00031 //
00032 //  Contact:   N. West
00033 //
00034 //  Specification:-
00035 //  =============
00036 //
00037 //  o  Create DbiString.
00038 
00039 
00040 //  Program Notes:-
00041 //  =============
00042 
00043 //  None.
00044 
00045   LEA_CTOR    //Leak Checker
00046 
00047   MSG("Dbi", Msg::kVerbose) << "Creating DbiString" << endl;
00048 
00049 }

DbiString::DbiString ( const Char_t *  str  ) 

Definition at line 53 of file DbiString.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00053                                       :
00054 fString(str)
00055 {
00056 //
00057 //
00058 //  Purpose:  Constructor from Char_t*.
00059 //
00060 //  Arguments:
00061 //     str        in  Initial string.       
00062 //
00063 //  Return:    n/a
00064 //
00065 //  Contact:   N. West
00066 //
00067 //  Specification:-
00068 //  =============
00069 //
00070 //  o  Create DbiString.
00071 
00072 
00073 //  Program Notes:-
00074 //  =============
00075 
00076 //  None.
00077 
00078   LEA_CTOR    //Leak Checker
00079 
00080   MSG("Dbi", Msg::kVerbose) << "Creating DbiString" << endl;
00081 
00082 }

DbiString::DbiString ( const std::string &  str  ) 

Definition at line 86 of file DbiString.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00086                                          :
00087 fString(str)
00088 {
00089 //
00090 //
00091 //  Purpose:  Constructor from string.
00092 //
00093 //  Arguments:
00094 //     str        in  Initial string.       
00095 //
00096 //  Return:    n/a
00097 //
00098 //  Contact:   N. West
00099 //
00100 //  Specification:-
00101 //  =============
00102 //
00103 //  o  Create DbiString.
00104 
00105 
00106 //  Program Notes:-
00107 //  =============
00108 
00109 //  None.
00110 
00111   LEA_CTOR    //Leak Checker
00112 
00113   MSG("Dbi", Msg::kVerbose) << "Creating DbiString" << endl;
00114 
00115 }

DbiString::~DbiString (  )  [virtual]

Definition at line 119 of file DbiString.cxx.

References Msg::kVerbose, LEA_DTOR, and MSG.

00119                       {
00120 //
00121 //
00122 //  Purpose: Destructor
00123 //
00124 //  Arguments: 
00125 //    None.
00126 //
00127 //  Return:    n/a
00128 //
00129 //  Contact:   N. West
00130 //
00131 //  Specification:-
00132 //  =============
00133 //
00134 //  o  Destroy DbiString
00135 
00136 
00137 //  Program Notes:-
00138 //  =============
00139 
00140 //  None.
00141 
00142   LEA_DTOR    //Leak Checker
00143 
00144   MSG("Dbi", Msg::kVerbose) << "Destroying DbiString" << endl;
00145 
00146 }


Member Function Documentation

const Char_t* DbiString::c_str (  )  const [inline]
void DbiString::Clear (  )  [inline]

Definition at line 58 of file DbiString.h.

References fString.

Referenced by DbiCascader::ReserveNextSeqNo().

00058 { fString.clear(); }

std::string& DbiString::GetString (  )  [inline]

Definition at line 59 of file DbiString.h.

References fString.

00059 { return fString; }

const std::string& DbiString::GetString (  )  const [inline]
DbiString & DbiString::operator<< ( const std::string &  data  ) 

Definition at line 162 of file DbiString.cxx.

References fString.

00162                                                       { 
00163                                fString.append(data); return *this; }

DbiString & DbiString::operator<< ( const Char_t *  data  ) 

Definition at line 160 of file DbiString.cxx.

References fString.

00160                                                    { 
00161                                fString.append(data); return *this; }

DbiString & DbiString::operator<< ( Char_t  data  ) 

Definition at line 158 of file DbiString.cxx.

References fString.

00158                                             { 
00159                              fString.append(1,data); return *this; }

DbiString & DbiString::operator<< ( Float_t  data  ) 

Definition at line 157 of file DbiString.cxx.

References OUT.

00157 { OUT(Float_t,data) }

DbiString & DbiString::operator<< ( UInt_t  data  ) 

Definition at line 156 of file DbiString.cxx.

References OUT.

00156 { OUT(UInt_t,data) }

DbiString & DbiString::operator<< ( Int_t  data  ) 

Definition at line 155 of file DbiString.cxx.

References OUT.

00155 { OUT(Int_t,data) }


Member Data Documentation

std::string DbiString::fString [private]

The underlying string.

Definition at line 67 of file DbiString.h.

Referenced by c_str(), Clear(), GetString(), and operator<<().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1