?? 合帳共享內(nèi)存訪問接口.txt
字號:
//添加數(shù)據(jù)
int appendElement(const long serv_id, const int billing_cycle_id, const short int acct_item_type_id, const short int item_source_id, long fee);
//取值
bool getCharge(const long serv_id, const int billing_cycle_id, const short int acct_item_type_id, const short int item_source, long* out_value );
//更新值
bool updateCharge(const long serv_id, const int billing_cycle_id, const short int acct_item_type_id, const short int item_source, const long fee );
//更新值
bool updateChargeList(const long serv_id, const int billing_cycle_id, vector<ACCT_ITEM_FEE>& acct_item_fee );
//遍歷
bool getFirstElement( long* serv_id, int* billing_cycle_id );
bool getNextElement( long* serv_id, int* billing_cycle_id );
bool getNextItem( short int* acct_item_id, short int* item_source_id, long* acct_fee );
//加這兩個。
//typedef struct _ACCT_ITEM_FEE
//{
// int key;
// long fee;
//} ACCT_ITEM_FEE;
//構(gòu)造ACCT_ITEM_FEE.key,需要調(diào)用 bool setInt( const short int acct_item_id, const short int item_source_id, int* acct_item );
bool setInt( const short int acct_item_id, const short int item_source_id, int* acct_item );
bool getShortInt( const int acct_item, short int* acct_item_id, short int * item_source_id );
//遍歷操作偽代碼
if ( getFirstElement( &serv_id, &billing_cycle_id ) )
{
while( getNextItem( &acct_item_type_id, &item_source_id, &acct_fee) )
{
//第一個
}
while( getNextElement(&serv_id, &billing_cycle_id ) )
{
while( getNextItem( &acct_item_type_id, &item_source_id, &acct_fee) )
{
//第一個以后的
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -