Up: The Object Definition Language
Previous: Code Inclusion
Contents
The eyedbodl compiler
eyedbodl -gencode C++ -package-name package
[-output-file-prefix prefix]
[-db-class-prefix dbprefix
[-class-enums yes|no]
[-h-suffix suffix]
[-error-policy status|exception]
[-rootclass rootclass] [-no-rootclass]
[-cpp-flags flags] [-no-cpp] odlfile|-|-db dbname
eyedbodl -gencode Java -package-name package
[-output-file-prefix prefix]
[-db-class-prefix dbprefix
[-error-policy status|exception]
[-cpp-flags flags] [-no-cpp] odlfile|-|-db dbname
eyedbodl -gencode CORBA|IDL -package-name package -idl-module module
[-output-dir dirname] [-no-generic-idl]
[-class-prefix prefix]
[-sync yes|no] [-comments yes|no]
[-cpp-flags flags] [-no-cpp] odlfile|-|-db dbname
eyedbodl -gencode ODL -db dbname [-o odlfile]
eyedbodl -diff -db dbname
[-cpp-flags flags] [-no-cpp] odlfile|-
eyedbodl -update -db dbname -package-name package
[-admin]
odlfile|-
eyedbodl -checkfile odlfile|-
eyedbodl -help
one must specify one and only oneof the following major options:
-gencode C++ : generates C++ code
-gencode Java : generates Java code
-gencode CORBA : generates CORBA code (IDL and C++ stubs)
-gencode IDL : generates IDL
-gencode ODL : generates ODL
-update : updates schema in database dbname
-diff : displays the differences between
a database schema and an odl file
-checkfile : check input ODL file
-help : displays the current information
the following options must be added to the -gencode C++ or Java option:
-package-name package : package name
odlfile|-|-db dbname : input ODL file (- is the standard input) or
the database which contains the schema
the following options can be added to the -gencode C++ or Java option:
-output-dir dirname : output directory for generated files
-output-file-prefix prefix : ouput file prefix (default is the package name)
-class-prefix prefix : prefix to be put at the begining of each runtime class
-db-class-prefix prefix : prefix to be put at the begining of each database class
-attr-style implicit : attribute methods have the attribute name
-attr-style explicit : attribute methods have the attribute name
prefixed by get/set (default)
-schema-name schname : schema name (default is package)
-down-casting yes : generates the down casting methods (the default)
-down-casting no : does not generate the down casting methods
-attr-cache yes : generates attribute cache instance variable
-attr-cache no : does not generate attribute cache instance variable
(the default)
for the -gencode C++ option only:
-c-suffix suffix : use suffix as the C file suffix
-h-suffix suffix : use suffix as the H file suffix
-gen-class-stubs : generates a file class_stubs.h for each class
-class-enums yes : generates enums within a class
-class-enums no : do not generate enums within a class (default)
-error-policy status : status oriented error policy (the default)
-error-policy exception : exception oriented error policy
-rootclass rootclass : use rootclass name for the root class instead
of the package name.
-no-rootclass : does not use any root class
the following options must be added to the -gencode CORBA or IDL option:
-package-name package : package name
-idl-module module : the IDL module name
one of the following options must be added to the -gencode CORBA option:
odlfile|-|-db dbname : input ODL file (- is the standard input) or
the database which contains the schema
the following options can be added to the -gencode CORBA or IDL option:
-output-dir dirname : output directory for generated files
-imdl imdlfile|- : IMDL file (- is the standard input)
-no-generic-idl : the EyeDB generic IDL file eyedb.idl will not
be automatically included in the IDML file
-generic-idl idlfile : give the location of the EyeDB generic IDL file eyedb.idl
-no-factory : the factory interface will not be generated
-sync yes|no : the backend runtime objects will be synchronized
(yes: the default), or not synchronized (no)
with the database.
-comments yes|no : does (yes) or does not (no) generate mapping
comments in the IDL
the following option must be added to the -update option:
-db dbname : the database for which operation is performed
odlfile|- : input ODL file (- is the standard input)
the following options can be added to the -update option:
-schema-name schname : schema name (default is package)
-db-class-prefix prefix : prefix to be put at the begining of each database class
-admin : opens the database in admin mode.
the following options must be added to the -diff option:
-db dbname : the database for which the schema
difference is performed
odlfile : the input ODL file for which the schema
difference is performed
the following option must be added to the -checkfile option:
odlfile|- : input ODL file (- is the standard input)
the following options can be added when an odlfile is set:
-cpp cpp : uses cpp preprocessor instead of
the default one
-cpp-flags cpp-flags : adds cpp-flags to the preprocessing command
-no-cpp : does not use any preprocessor.
Up: The Object Definition Language
Previous: Code Inclusion
Contents
EyeDB manual