NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CDB_String Class Reference

Search Toolkit Book for CDB_String

#include <dbapi/driver/types.hpp>

+ Inheritance diagram for CDB_String:
+ Collaboration diagram for CDB_String:

Public Member Functions

 CDB_String (void)
 
 CDB_String (const CDB_String &other, bool share_data=false)
 
 CDB_String (const string &s, EEncoding enc=eEncoding_Unknown)
 
 CDB_String (const char *s, string::size_type size=string::npos, EEncoding enc=eEncoding_Unknown)
 
 CDB_String (const string &s, string::size_type size=string::npos, EEncoding enc=eEncoding_Unknown)
 
 CDB_String (const TStringUCS2 &s, TStringUCS2::size_type size=TStringUCS2::npos)
 
virtual ~CDB_String (void)
 
CDB_Stringoperator= (const CDB_String &other)
 
CDB_Stringoperator= (const string &s)
 
CDB_Stringoperator= (const char *s)
 
CDB_Stringoperator= (const TStringUCS2 &s)
 
 operator const char * (void) const
 
 operator const string & (void) const
 
const wstring & AsWString (EEncoding enc) const
 
const wchar_t * AsUnicode (EEncoding enc) const
 
const stringAsString (void) const
 
size_t Size (void) const
 
const char * Data (void) const
 
const char * AsCString (void) const
 
const char * Value (void) const
 
void Assign (const CDB_String &other)
 
void Assign (const char *s, string::size_type size=string::npos, EEncoding enc=eEncoding_Unknown)
 
void Assign (const string &s, string::size_type size=string::npos, EEncoding enc=eEncoding_Unknown)
 
void Assign (const TStringUCS2 &s, TStringUCS2::size_type size=TStringUCS2::npos)
 
EBulkEnc GetBulkInsertionEnc (void) const
 
void SetBulkInsertionEnc (EBulkEnc e)
 
void GetBulkInsertionData (CTempString *ts, bool convert_raw_bytes=false) const
 
- Public Member Functions inherited from CDB_Object
 CDB_Object (bool is_null=true)
 
virtual ~CDB_Object ()
 
bool IsNULL () const
 
virtual void AssignNULL ()
 
virtual EDB_Type GetType () const =0
 
virtual CDB_ObjectClone () const =0
 
virtual CDB_ObjectShallowClone () const
 
virtual void AssignValue (const CDB_Object &v)=0
 
string GetLogString (void) const
 

Private Member Functions

const stringx_GetWString () const
 

Private Attributes

CRef< CWStringm_WString
 
EBulkEnc m_BulkInsertionEnc
 

Additional Inherited Members

- Static Public Member Functions inherited from CDB_Object
static CDB_ObjectCreate (EDB_Type type, size_t size=1)
 
static const char * GetTypeName (EDB_Type db_type, bool throw_on_unknown=true)
 
static EBlobType GetBlobType (EDB_Type db_type)
 
static bool IsBlobType (EDB_Type db_type)
 
- Protected Member Functions inherited from CDB_Object
void SetNULL (bool flag=true)
 

Detailed Description

Definition at line 468 of file types.hpp.


The documentation for this class was generated from the following files:
Modified on Tue Jul 23 17:58:27 2024 by modify_doxy.py rev. 669887