1 Star 0 Fork 0

brick / gmysqlc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SCCPBase.h 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
brick 提交于 2022-08-22 14:41 . source code
/********************************************************
* Copyright (c) 2004-2022, Brick Technologies Co., Ltd
* All rights reserved.
* Home page:http://www.bricktou.com
********************************************************/
/**
* Generate mysql c
*/
#pragma once
#define Brick "Brick Technologies Co., Ltd"
// Output report succeeded
#define PLI_OK 0
// Stop the program running
#define PLI_EXIT -1
#define SEND_INFO(major, minor) \
aScct->sendInfo(major, minor, __FILE__, __LINE__)
#define EXIT_INFO(major) do { \
aScct->sendInfo(major, "", __FILE__, __LINE__); \
return PLI_EXIT; \
}while (0)
#include "stdafx.h"
#include "IAccessSCCT.h"
#include "ISCCGenerate.h"
namespace sccp {
class SCCPBase {
public:
/**
* Handle of access SCCT
*/
IAccessSCCT *aScct;
bool filterColumn(IColumn *column);
std::string getTypeByCol(IColumn *column);
int getLenArrayByCol(IColumn *column);
std::string codeToVarName(std::string &code);
int errCount;
int checkCode(ITable *pTable);
int checkColCode(IColumn *column);
void outputFileHead(ITable *pTable);
void outputInclude();
/**
* Handle of report file
*/
FILE *hf;
int createFile(ITable *pTable);
int createPath(const std::string &path);
SCCPBase(void);
void putIndent(const int indent = 4);
/**
* Auxiliary function to make the output code beautiful
*/
size_t maxColumnLength;
int initColumnLength(ITable *pTable);
private:
int setColumnLength(IColumn *column);
std::vector<std::string> split(const std::string &str, const std::string &sep);
std::string upFirst(const std::string &str);
};
}//sccp
C++
1
https://gitee.com/wusongshan/gmysqlc.git
git@gitee.com:wusongshan/gmysqlc.git
wusongshan
gmysqlc
gmysqlc
master

搜索帮助