Files
SOMEIP/code_generator/backup/cpp.template
2026-06-09 20:16:47 +08:00

54 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// @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)
{
}