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

Search Toolkit Book for CDBParamVariant

#include <dbapi/driver/interfaces.hpp>

Public Types

enum  ENameFormat {
  ePlainName, eQMarkName, eNumericName, eNamedName,
  eFormatName, eSQLServerName

Public Member Functions

 CDBParamVariant (int pos)
 CDBParamVariant (unsigned int pos)
 CDBParamVariant (const char *name)
 CDBParamVariant (const string &name)
 ~CDBParamVariant (void)
bool IsPositional (void) const
unsigned int GetPosition (void) const
ENameFormat GetFormat (void) const
const stringGetName (void) const
string GetName (ENameFormat format) const

Static Public Member Functions

static string MakePlainName (const CTempString &name)

Static Private Member Functions

static CTempString MakeName (const CTempString &name, ENameFormat &format)

Private Attributes

bool m_IsPositional
unsigned int m_Pos
ENameFormat m_Format
const string m_Name

Detailed Description

Definition at line 95 of file interfaces.hpp.

Constructor & Destructor Documentation

CDBParamVariant::CDBParamVariant ( int  pos)

Definition at line 94 of file public.cpp.

CDBParamVariant::CDBParamVariant ( unsigned int  pos)

Definition at line 101 of file public.cpp.

CDBParamVariant::CDBParamVariant ( const char *  name)

Definition at line 108 of file public.cpp.

CDBParamVariant::CDBParamVariant ( const string name)

Definition at line 115 of file public.cpp.

CDBParamVariant::~CDBParamVariant ( void  )

Definition at line 123 of file public.cpp.

Member Function Documentation

ENameFormat CDBParamVariant::GetFormat ( void  ) const

Definition at line 125 of file interfaces.hpp.

References m_Format.

Referenced by GetName().

const string& CDBParamVariant::GetName ( void  ) const
string CDBParamVariant::GetName ( CDBParamVariant::ENameFormat  format) const
unsigned int CDBParamVariant::GetPosition ( void  ) const
bool CDBParamVariant::IsPositional ( void  ) const
CTempString CDBParamVariant::MakeName ( const CTempString name,
CDBParamVariant::ENameFormat format 
string CDBParamVariant::MakePlainName ( const CTempString name)

Definition at line 228 of file public.cpp.

References CTempString::assign(), CTempString::data(), CTempString::end(), and NULL.

Referenced by GetName().

Member Data Documentation

ENameFormat CDBParamVariant::m_Format

Definition at line 143 of file interfaces.hpp.

Referenced by GetFormat().

bool CDBParamVariant::m_IsPositional

Definition at line 141 of file interfaces.hpp.

Referenced by IsPositional().

const string CDBParamVariant::m_Name

Definition at line 144 of file interfaces.hpp.

Referenced by GetName().

unsigned int CDBParamVariant::m_Pos

Definition at line 142 of file interfaces.hpp.

Referenced by GetPosition().

The documentation for this class was generated from the following files:
Modified on Sun Dec 10 16:47:57 2017 by rev. 546573