feat():initial version
This commit is contained in:
53
code_generator/backup/cpp.template
Normal file
53
code_generator/backup/cpp.template
Normal file
@@ -0,0 +1,53 @@
|
||||
/// @class ${CLASSNAME}
|
||||
|
||||
/// @brief cpp底层接口类 操作${TABLE_NAME}内容
|
||||
|
||||
/// TABLE ${TABLE_NAME_UPPER}
|
||||
|
||||
/// @author test.py
|
||||
|
||||
/// @generate date: ${GENE_DATE}
|
||||
|
||||
/// [注:本文件为自动生成,不需要人为编辑,若有修改,请通过配置py脚本来重新生成.]
|
||||
|
||||
include “${CLASSNAME}.h”
|
||||
|
||||
include “include/${TABLE_NAME}_t.h”
|
||||
|
||||
include “RedisManager.h”
|
||||
|
||||
include “common/LogMacros.h”
|
||||
|
||||
include “common/StringUtility/OtherStringFunc.h”
|
||||
|
||||
include “common/DateTime.h”
|
||||
|
||||
namespace redisdao{
|
||||
|
||||
#define PRIMARY_KEY “${PRIMER_KEY}”
|
||||
|
||||
const string ${CLASSNAME}::TABLE_NAME = “${TABLE_NAME}”;
|
||||
|
||||
const string ${CLASSNAME}::TABLE_ID = “${TABLE_ID}”; //在数据库中的表的唯一性标识符
|
||||
|
||||
const string ${CLASSNAME}::KEY_SEPARETER = “${KEY_SEPARETER}”;
|
||||
|
||||
${CLASSNAME}::${CLASSNAME}(void)
|
||||
{
|
||||
|
||||
if ( 0 == m_reHandler.EnsureConnect())
|
||||
m_bRedisConnected = true;
|
||||
else
|
||||
m_bRedisConnected = false;
|
||||
}
|
||||
|
||||
${CLASSNAME}::~${CLASSNAME}(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int ${CLASSNAME}::InsertRecord(const string& strVal)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user