我的CMD工程(3) DataDefine的定义 请指点

//File Name: DataDefine.h
//Info       : Define Structures and Data
//author   : CRZ


#  ifndef  DATADEFINE_H
#  define  DATADEFINE_H


#  include <string>
using namespace std;


///
#  define    _void_                         0x000 
#  define    _pstr_                         0x001
#  define    _char_                         0x002
#  define    _int_                          0x003
#  define    _float_                        0x004
#  define    _double_                       0x005
#  define    _string_                       0x006
///
#  define InputInfo                         0x010
#  define FucCallFail                       0x011
#  define FewParm                           0x012
#  define MuchParm                          0x013
#  define FucNotFind                        0x014
#  define FucHelp                           0x015
#  define FucNotDefine                      0x016
#  define DllNotFind                        0x017
#  define DLLLoadFail                       0x018
#  define FucInfoFail                       0x019
///


///
struct command_parm  //用于存放转换后的参数(int char char* float double)
{
 char    parm[16][256];  //支持16个参数的传递 注意到parm[0]为命令名
 int     parmstyle[16];
 int     factparmnum;    //实际输入的参数个数
    string  all_parm;
};
///
struct fuc_info
{
 int      fucnum;       /*save the function number in the FunctionInfo.txt*/
 char     fucname[128]; /*save function name*/
 char     dllname[128]; //函数所在dll的文件名
 int      dllnum;       //函数所在dll中的位置
 int      parmtype;     /*save the type of the parms*/
 int      parmnum;      /*ideal parm number*/
};
///
struct temp_fuc_info
{
 char info[6][128];
};
///
struct realparm
{
char    char_parm[16];    //存放字符型参数
int     int_parm[16];     //存放整型参数
float   float_parm[16];   //存放float型参数
double  double_parm[16];  //存放double型参数
char    str_parm[16][64]; //char*类型参数的存储方法
string string_parm[16];   //存放string类型的参数
};
///
struct workspace
{
 string s_work_space;      //存放作用空间
 string s_temp_work_space; //存放临时作用空间
    string filename;          //存放文件名
};
///
#  endif

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值