eXtremeDb的schema编译工具选项

来源:互联网 发布:网络管理总结 编辑:程序博客网 时间:2024/06/05 14:51

eXtremeDb的schema编译工具选项:

OPTIONS  DESCRIPTION
-o, -O  Instructs the processor to generate the optimized version of the  eXtremeDB 
implementation files; otherwise the default (development) version is 
generated. The optimized version generates inline functions, and replaces 
some functions with macros that are put into the implementation header file 
instead of the implementation “C” file.
-p, -P <path>  Specifies the output directory. If the directory is not specified, the files are 
written to the ddlspec file directory.
-i, -I <path>  Specifies the include directory. If this path is not specified the compiler will 
look only in the ddlspec file directory.
-hpp, -c++  Generates a C++ implementation file (.hpp).
-cs [namespace]  Generates C# class definitions, optionally within a namespace
-sa [typename]  Suppress the generation of the API for classes (for use with the UDA API)
-si  Specifies verbose structure initialization. By default, the compiler generates 
code of the form:
struct A { int i; int j; };
A a = {3,4};
Some C compilers will not accept this form of structure initialization so the 
si switch will generate code of the form:
struct A { int i; int j; };
A a;
a.i = 3; a.j = 4;
-c, -C, -compact  Specifies the “compact” option for all classes in the database. 2-byte offsets 
will be used for structures, variable length, optional and sequence fields in 
each class, and all objects are limited in size to 64K (excluding BLOBs & 
sequences).
-s, -S  suppress copyright notice and timestamp console output
-x, -X  generate XML methods: classname_xml_get, classname_xml_put,
classname_xml_create, classname_xml_schema.
-x32  Generate 32-bit pointers. (If neither -x32 or -x64 is specified, the default 
pointer size is the size of a pointer on the host system.)
-x64  Generate 64-bit pointers. (If neither -x32 or -x64 is specified, the default 
pointer size is the size of a pointer on the host system.)
-persistent  Makes all unspecified classes ‘Persistent’.
-transient  Makes all unspecified classes ‘Transient’ (default).
-prefix  prefixes schema names with the database name
-nosort  do not change order of fields (JNI/.NET and DDL compatibility mode)
-ws1  specifies size of wchar_t type on target system as 1 byte
-ws2  specifies size of wchar_t type on target system as 2 bytes
-ws4  specifies size of wchar_t type on target system as 4 bytes
-help  Prints out usage information for mcocomp.