全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド ページ
名前空間 | クラス | 型定義 | 列挙型 | 関数 | 変数
bzs::db::protocol::tdap 名前空間

名前空間

 client
 

クラス

class  bdate
 btrDate型の変換クラス [詳解]
 
union  btrDate
 PSQL形式の日付型の共用体 [詳解]
 
union  btrDateTime
 PSQL形式の日時型の共用体 [詳解]
 
union  btrTime
 PSQL形式の時刻型の共用体 [詳解]
 
class  btrTimeStamp
 PSQL形式のタイムスタンプ型クラス [詳解]
 
struct  btrVersion
 サーバーおよびクライアントモジュールのバージョン構造体 [詳解]
 
struct  btrVersions
 バージョン配列構造体 [詳解]
 
struct  fielddef
 フィールド定義構造体 [詳解]
 
struct  fielddef_t
 フィールド定義構造体 [詳解]
 
struct  fileSpec
 create tableで使用するファイル定義構造体 [詳解]
 
union  FLAGS
 ビットフィールド共用体 [詳解]
 
struct  keydef
 キー定義構造体 [詳解]
 
struct  keySegment
 キーセグメント定義構造体 [詳解]
 
struct  keySpec
 create tableで使用するキーセグメント定義構造体 [詳解]
 
struct  tabledef
 テーブル定義構造体 [詳解]
 

型定義

typedef fielddef_t
< MYSQL_FDNAME_SIZE > 
fielddef_t_my
 
typedef fielddef_t
< PERVASIVE_FDNAME_SIZE > 
fielddef_t_pv
 

列挙型

enum  combineType { eCend, eCand, eCor }
 
enum  eCompType {
  eEqual = 1, eGreater = 2, eLess = 3, eNotEq = 4,
  eGreaterEq = 5, eLessEq = 6, eBitAnd = 8, eNotBitAnd = 9
}
 

関数

PACKAGE btrDate atobtrd (const char *date)
 
PACKAGE btrDateTime atobtrs (const _TCHAR *p)
 
PACKAGE btrTime atobtrt (const char *p)
 
char * binToHex (char *retVal, const unsigned char *src, int size)
 
PACKAGE const char * btrdtoa (const btrDate &d, char *retbuf, bool type_vb=false)
 
const char * btrdtoa (int date, char *retbuf, bool type_vb=false)
 
PACKAGE const _TCHAR * btrstoa (const btrDateTime &d, _TCHAR *retbuf=NULL, bool type_vb=false)
 
PACKAGE const char * btrttoa (const btrTime &t, char *retbuf, bool type_vb=false)
 
const char * btrttoa (int time, char *retbuf, bool type_vb=false)
 
const _TCHAR * c_str (const btrDate &d)
 
const _TCHAR * c_str (const btrTime &d)
 
const _TCHAR * c_str (const btrDateTime &d, bool type_vb=false)
 
void cryptKeyGen (boost::uuids::detail::sha1::digest_type retVal, const unsigned int *sha1Passwd, const unsigned char *scramble)
 
const _TCHAR * dbname (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
void endPoint (const _TCHAR *uri, _TCHAR *host, size_t hostSize, _TCHAR *port, size_t portSize)
 
PACKAGE uchar_td getFilterLogicTypeCode (const _TCHAR *cmpstr)
 
PACKAGE int getNowDate ()
 
PACKAGE int getNowTime ()
 
PACKAGE int getTypeAlign (short type)
 
PACKAGE const _TCHAR * getTypeName (short type)
 
unsigned char * hexTobin (unsigned char *retVal, const char *src, int size)
 
const _TCHAR * hostName (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
bool isStringType (uchar_td type)
 
bool isStringTypeForIndex (uchar_td type)
 
PACKAGE ushort_td lenByCharnum (uchar_td type, uchar_td charsetIndex, ushort_td charnum)
 
void mysqlCryptPwd (char *retVal, const char *src, const unsigned char *scramble)
 
const _TCHAR * passwd (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
const _TCHAR * port (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
const _TCHAR * protocol (const _TCHAR *uri)
 
void reorder_digest (boost::uuids::detail::sha1::digest_type val)
 
const _TCHAR * schemaTable (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
void sha1Passwd (boost::uuids::detail::sha1::digest_type retVal, const char *src)
 
const _TCHAR * stripAuth (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
const _TCHAR * stripPasswd (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
const _TCHAR * stripPasswdParam (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
const _TCHAR * userName (const _TCHAR *uri, _TCHAR *buf, size_t size)
 
void xorCrypt (char *retVal, const unsigned char *src, const unsigned char *key, unsigned int len)
 

変数

 pragma_pack1
 
 pragma_pop
 

型定義詳解

fielddef_t< MYSQL_FDNAME_SIZE > fielddef_t_my

MySQLのフィールド名の長さに対応したフィールド定義クラス

fielddef_t< PERVASIVE_FDNAME_SIZE > fielddef_t_pv

PSQLのフィールド名の長さに対応したフィールド定義クラス

列挙型詳解

次の論理式への関係タイプ

列挙値
eCend 

この論理式が最後です。

eCand 

次の論理式と and で接続します。

eCor 

次の論理式と or で接続します。

enum eCompType

比較演算子タイプ

列挙値
eEqual 

= 演算子

eGreater 

> 演算子

eLess 

< 演算子

eNotEq 

!= 演算子

eGreaterEq 

>= 演算子

eLessEq 

<= 演算子

eBitAnd 
eNotBitAnd 

関数詳解

btrDate atobtrd ( const char *  date)

"yyyy-mm-dd"形式の文字列の日付からbtrDate型に変換します。

btrDateTime atobtrs ( const _TCHAR *  p)

"yyyy-mm-dd hh:nn::ss"形式の文字列の日時からbtrDateTime型に変換します。

戻り値
変換後のbtrDateTimeオブジェクトを返します。
btrTime atobtrt ( const char *  p)

"hh:nn::ss"形式の文字列の時刻からbtrTime型に変換します。

char* bzs::db::protocol::tdap::binToHex ( char *  retVal,
const unsigned char *  src,
int  size 
)
inline
const char * btrdtoa ( const btrDate &  d,
char *  retbuf,
bool  type_vb = false 
)

btrDate型の日付を"yyyy-mm-dd"形式の文字列に変換します。

引数
[in]dbtrDate型の日付を指定します。
[out]retbuf変換後の文字列を受け取るバッファのアドレスを指定します。
バッファは11文字以上のサイズが必要です。
[in]type_vb日付フォーマットの区切り文字を - (ハイフン)にする場合はtrueを指定します。 / (スラッシュ)にする場合はfalseを指定します。
戻り値
retbufのアドレスを返します。
const char * btrdtoa ( int  date,
char *  retbuf,
bool  type_vb = false 
)
inline

btrDate型のint値で指定した日付を"yyyy-mm-dd"形式の文字列に変換します。

引数
[in]datebtrDate型のint値の日付を指定します。
[out]retbuf変換後の文字列を受け取るバッファのアドレスを指定します。
バッファは11文字以上のサイズが必要です。
[in]type_vb日付フォーマットの区切り文字を - (ハイフン)にする場合はtrueを指定します。 / (スラッシュ)にする場合はfalseを指定します。
戻り値
retbufのアドレスを返します。
const _TCHAR * btrstoa ( const btrDateTime &  d,
_TCHAR *  retbuf = NULL,
bool  type_vb = false 
)

btrDateTime型の日時を"yyyy-mm-dd hh:nn::ss"形式の文字列に変換します。

引数
[in]dbtrDateTime型の時刻を指定します。
[out]retbuf変換後の文字列を受け取るバッファのアドレスを指定します。
バッファは21文字以上のサイズが必要です。
[in]type_vb日付フォーマットの区切り文字を - (ハイフン)にする場合はtrueを指定します。 / (スラッシュ)にする場合はfalseを指定します。
戻り値
retbufのアドレスを返します。
const char * btrttoa ( const btrTime &  t,
char *  retbuf,
bool  type_vb = false 
)

btrTime型の時刻を"hh-nn-ss"形式の文字列に変換します。

引数
[in]tbtrTime型の時刻を指定します。
[out]retbuf変換後の文字列を受け取るバッファのアドレスを指定します。
バッファは9文字以上のサイズが必要です。
[in]type_vb時刻フォーマットの区切り文字を - (ハイフン)にする場合はtrueを指定します。 : (コロン)にする場合はfalseを指定します。
戻り値
retbufのアドレスを返します。
const char * btrttoa ( int  time,
char *  retbuf,
bool  type_vb = false 
)
inline

btrTime型のint値で指定した時刻を"hh-nn-ss"形式の文字列に変換します。

引数
[in]timebtrTime型の時刻を指定します。
[out]retbuf変換後の文字列を受け取るバッファのアドレスを指定します。
バッファは9文字以上のサイズが必要です。
[in]type_vb時刻フォーマットの区切り文字を - (ハイフン)にする場合はtrueを指定します。 : (コロン)にする場合はfalseを指定します。
戻り値
retbufのアドレスを返します。
const _TCHAR * c_str ( const btrDate &  d)
inline

btrDate型の日付を"yyyy/mm/dd"形式の文字列に変換します。

引数
dbtrDate型の日付を渡します。
戻り値
変換後の文字列の先頭アドレスを返します。
const _TCHAR * c_str ( const btrTime &  d)
inline

btrTime型の時刻を"hh:nn::ss"形式の文字列に変換します。

引数
dbtrTime型の時刻を渡します。
戻り値
変換後の文字列の先頭アドレスを返します。
const _TCHAR * c_str ( const btrDateTime &  d,
bool  type_vb = false 
)
inline

btrDateTime型の日時を"yyyy-mm-dd hh:nn::ss"形式の文字列に変換します。

引数
[in]d変換元の日時を指定します。
[in]type_vb日付フォーマットの区切り文字を - (ハイフン)にする場合はtrueを指定します。 / (スラッシュ)にする場合はfalseを指定します。
戻り値
変換後の文字列の先頭アドレスを返します。
void bzs::db::protocol::tdap::cryptKeyGen ( boost::uuids::detail::sha1::digest_type  retVal,
const unsigned int *  sha1Passwd,
const unsigned char *  scramble 
)
inline
const _TCHAR* bzs::db::protocol::tdap::dbname ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
void bzs::db::protocol::tdap::endPoint ( const _TCHAR *  uri,
_TCHAR *  host,
size_t  hostSize,
_TCHAR *  port,
size_t  portSize 
)
inline
PACKAGE uchar_td getFilterLogicTypeCode ( const _TCHAR *  cmpstr)

cmpstr で渡された比較文字列から eCompType 型の比較タイプコードを返します。
比較文字列は、クエリーで使用される =, >, <,などを組み合わせた文字列です。

int getNowDate ( )

現在の日付をbtrDate型のint値で取得します。

int getNowTime ( )

現在の時刻をbtrTime型のint値で取得します。

PACKAGE int getTypeAlign ( short  type)

typeで指定されたフィールドタイプの表示上のアライメントを返します。

テンプレート引数
typeフィールドタイプを指定します。
戻り値
0 or 1 or 2 を返します。それぞれ左揃え、中央揃え、右揃えです。
PACKAGE const _TCHAR * getTypeName ( short  type)

typeで指定されたフィールドタイプの名前を返します。

unsigned char* bzs::db::protocol::tdap::hexTobin ( unsigned char *  retVal,
const char *  src,
int  size 
)
inline
const _TCHAR* bzs::db::protocol::tdap::hostName ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
PACKAGE bool isStringType ( uchar_td  type)
inline

typeで指定したフィールドタイプが文字列型かどうかを返します。
文字列と判定されるのは以下のタイプです。
ft_zstring, ft_string, ft_lstring, ft_note, ft_mychar, ft_myvarchar, ft_myvarbinary,ft_mytext,ft_myblob とそれぞれのワイド文字型(存在する場合)です。

bool bzs::db::protocol::tdap::isStringTypeForIndex ( uchar_td  type)
inline
PACKAGE ushort_td lenByCharnum ( uchar_td  type,
uchar_td  charsetIndex,
ushort_td  charnum 
)

typeで指定されたフィールドタイプがft_mychar ft_myvarchar ft_mywchar ft_mywvarchar型 の場合に、charnumで指定した文字数から、 charsetIndexで指定された文字コード を使って、 フィールド長さを計算して返します。 前記以外のフィールドタイプの場合は、charnumをそのまま返します。

void bzs::db::protocol::tdap::mysqlCryptPwd ( char *  retVal,
const char *  src,
const unsigned char *  scramble 
)
inline
const _TCHAR* bzs::db::protocol::tdap::passwd ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
const _TCHAR* bzs::db::protocol::tdap::port ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
const _TCHAR* bzs::db::protocol::tdap::protocol ( const _TCHAR *  uri)
inline
void bzs::db::protocol::tdap::reorder_digest ( boost::uuids::detail::sha1::digest_type  val)
inline
const _TCHAR* bzs::db::protocol::tdap::schemaTable ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
void bzs::db::protocol::tdap::sha1Passwd ( boost::uuids::detail::sha1::digest_type  retVal,
const char *  src 
)
inline
const _TCHAR* bzs::db::protocol::tdap::stripAuth ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
const _TCHAR* bzs::db::protocol::tdap::stripPasswd ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
const _TCHAR* bzs::db::protocol::tdap::stripPasswdParam ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
const _TCHAR* bzs::db::protocol::tdap::userName ( const _TCHAR *  uri,
_TCHAR *  buf,
size_t  size 
)
inline
void bzs::db::protocol::tdap::xorCrypt ( char *  retVal,
const unsigned char *  src,
const unsigned char *  key,
unsigned int  len 
)
inline

変数詳解

pragma_pack1
pragma_pop

Transactd SDK 2015年09月08日(火) 19時13分37秒 doxygen