Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MatchingFilterRoom Class Reference

クエリー検索用マッチングルーム情報. More...

#include <MunMasterMatchingFilterRoom.hpp>

Static Public Member Functions

static std::string GetTableName (uint64 lobbyId)
 クエリー検索ルームテーブル名を取得する. More...
 
static bool IsExistTableName (SqliteAgent &dbAgent, std::string tableName)
 指定したクエリー検索ルームテーブルが存在するかどうかを取得する. More...
 
static std::string GetFilterParameters (SqlQueryInfo &sqlInfo, uint32 &index, STREAM::KeyValue *pParameters, uint16 parametersLen)
 検索クエリーを生成する. More...
 
static bool Create (SqliteAgent &dbAgent, std::string tableName, STREAM::KeyValue *pParameters, uint16 parametersLen)
 クエリー検索ルーム(テーブル)を生成する. More...
 
static bool Add (SqliteAgent &dbAgent, std::string tableName, std::string columnName, STREAM::Binary &columnInfo)
 クエリー検索ルーム(テーブル)にカラムを追加する. More...
 
static bool Insert (SqliteAgent &dbAgent, std::string tableName, uint64 id, STREAM::KeyValue *pParameters, uint16 parametersLen)
 クエリー検索ルーム(テーブル)にレコードを追加する. More...
 
static bool Update (SqliteAgent &dbAgent, std::string tableName, uint64 id, STREAM::KeyValue *pParameters, uint16 parametersLen)
 クエリー検索ルーム(テーブル)のレコードを更新する. More...
 
static bool Delete (SqliteAgent &dbAgent, std::string tableName, uint64 id)
 クエリー検索ルーム(テーブル)からレコードを削除する. More...
 
static bool Drop (SqliteAgent &dbAgent, std::string tableName)
 クエリー検索ルーム(テーブル)を削除する. More...
 
static void SearchRoomIds (SqliteAgent &dbAgent, std::string tableName, std::vector< uint64 > &roomIds, STREAM::KeyValue *pParameters, uint16 parametersLen, std::string keyValueFilter, bool isRandom, std::string &msg)
 クエリー検索ルーム(テーブル)からルーム情報を抽出(選択)し、結果をroomIdsに抽出する. More...
 
static void GetColumns (SqliteAgent &dbAgent, std::string tableName, std::map< std::string, std::string > &columns)
 カラムの取得. More...
 

Detailed Description

クエリー検索用マッチングルーム情報.

Member Function Documentation

bool MatchingFilterRoom::Add ( SqliteAgent &  dbAgent,
std::string  tableName,
std::string  columnName,
STREAM::Binary columnInfo 
)
static

クエリー検索ルーム(テーブル)にカラムを追加する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
columnNameカラム名.
columnInfoカラム内に含まれる情報.
Returns
カラム追加に成功したら true, 失敗したら false を返す。

Here is the caller graph for this function:

bool MatchingFilterRoom::Create ( SqliteAgent &  dbAgent,
std::string  tableName,
STREAM::KeyValue pParameters,
uint16  parametersLen 
)
static

クエリー検索ルーム(テーブル)を生成する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
pParametersクエリー検索ルームのカラム情報の先頭アドレス.
parametersLenクエリー検索ルームのカラム情報の数.
Returns
テーブル生成に成功したら true, 失敗したら false を返す。

Here is the caller graph for this function:

bool MatchingFilterRoom::Delete ( SqliteAgent &  dbAgent,
std::string  tableName,
uint64  id 
)
static

クエリー検索ルーム(テーブル)からレコードを削除する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
idインデックスキー.
Returns
レコード削除に成功したら true, 失敗したら false を返す。

Here is the caller graph for this function:

bool MatchingFilterRoom::Drop ( SqliteAgent &  dbAgent,
std::string  tableName 
)
static

クエリー検索ルーム(テーブル)を削除する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
Returns
テーブル削除に成功したら true, 失敗したら false を返す。

Here is the caller graph for this function:

void MatchingFilterRoom::GetColumns ( SqliteAgent &  dbAgent,
std::string  tableName,
std::map< std::string, std::string > &  columns 
)
static

カラムの取得.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
columnsカラムの取得結果.

Here is the caller graph for this function:

std::string MatchingFilterRoom::GetFilterParameters ( SqlQueryInfo &  sqlInfo,
uint32 &  index,
STREAM::KeyValue pParameters,
uint16  parametersLen 
)
static

検索クエリーを生成する.

Parameters
sqlInfoSQLiteクエリー生成モジュール.
index検索クエリーの位置(インデックス)情報.
pParameters検索クエリーに含めるルームパラメータ情報の先頭アドレス.
parametersLen検索クエリーに含めるルームパラメータ情報の数.
Returns
検索クエリーの文字列情報を返す。

Here is the caller graph for this function:

std::string MatchingFilterRoom::GetTableName ( uint64  lobbyId)
static

クエリー検索ルームテーブル名を取得する.

Parameters
lobbyIdロビーID.
Returns
クエリー検索ルームテーブル名を返す。

Here is the caller graph for this function:

bool MatchingFilterRoom::Insert ( SqliteAgent &  dbAgent,
std::string  tableName,
uint64  id,
STREAM::KeyValue pParameters,
uint16  parametersLen 
)
static

クエリー検索ルーム(テーブル)にレコードを追加する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
idインデックスキー.
pParameters追加するレコード情報の先頭アドレス.
parametersLen追加するレコード情報の数.
Returns
レコード追加に成功したら true, 失敗したら false を返す。

Here is the caller graph for this function:

bool MatchingFilterRoom::IsExistTableName ( SqliteAgent &  dbAgent,
std::string  tableName 
)
static

指定したクエリー検索ルームテーブルが存在するかどうかを取得する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
Returns
該当するクエリー検索ルームテーブルが存在すれば true, 存在しなければ false を返す。
void MatchingFilterRoom::SearchRoomIds ( SqliteAgent &  dbAgent,
std::string  tableName,
std::vector< uint64 > &  roomIds,
STREAM::KeyValue pParameters,
uint16  parametersLen,
std::string  keyValueFilter,
bool  isRandom,
std::string &  msg 
)
static

クエリー検索ルーム(テーブル)からルーム情報を抽出(選択)し、結果をroomIdsに抽出する.

クエリー検索ルーム(テーブル)からルーム情報を抽出(選択)する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
roomIdsクエリー検索ルームを抽出(選択)した結果得られるルームID群.
pParameters抽出(選択)するカラム情報の先頭アドレス.
parametersLen抽出(選択)するカラム情報の数.
keyValueFilter抽出(選択)条件文.
isRandom抽出(選択)した結果をランダムに並べ替えるかどうかのフラグ.
msgエラーログ.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MatchingFilterRoom::Update ( SqliteAgent &  dbAgent,
std::string  tableName,
uint64  id,
STREAM::KeyValue pParameters,
uint16  parametersLen 
)
static

クエリー検索ルーム(テーブル)のレコードを更新する.

Parameters
dbAgentSQLiteデータベース管理モジュール.
tableNameクエリー検索ルーム(テーブル)の名前.
idインデックスキー.
pParameters更新するレコード情報の先頭アドレス.
parametersLen更新するレコード情報の数.
Returns
レコード更新に成功したら true, 失敗したら false を返す。

Here is the caller graph for this function:


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