Archived
This forum has been archived. Please start a new discussion on GitHub.
Is there any operation for slice2xxx to generate example servant code ?
in Help Center
Is there any operation for slice2xxx to generate example servant code such as some corba tools?
From the document, it seems not.
I think it would be a great thing if slice2xxx can provide such an option:)
$idl2cpp -h idl2cpp:usage -[no_]servant Generate servant (server-side) code (on) ...
From the document, it seems not.
-h, --help Displays a help message. -v, --version Displays the compiler version. -DNAME Defines the preprocessor symbol NAME. -DNAME=DEF Defines the preprocessor symbol NAME with the value DEF. -UNAME Undefines the preprocessor symbol NAME. -IDIR Add the directory DIR to the search path for #include directives. -E Print the preprocessor output on stdout. --output-dir DIR Place the generated files into directory DIR. -d, --debug Print debug information showing the operation of the Slice parser. --ice Permit use of the normally reserved prefix Ice for identifiers. Use this option only when compiling the source code for the Ice run time.
I think it would be a great thing if slice2xxx can provide such an option:)
0
Comments
-
Hi,
Most of the slice2xx compilers have a --impl option to generate a sample servant implementation. Java, C# and VB also have a --impl-tie option to generate an sample implementation that uses ties. The documentation snippit you show above lists only the options that are common to all the slice2xxx compilers. Please see the specific compiler sections for compiler specific options.
Regards0 -
It seems that slice2py has no this kind of option while slice2cpp and slice2java have. Is there any reason ? Thank you!
F:\>slice2py -h Usage: slice2py [options] slice-files... Options: -h, --help Show this message. -v, --version Display the Ice version. -DNAME Define NAME as 1. -DNAME=DEF Define NAME as DEF. -UNAME Remove any definition for NAME. -IDIR Put DIR in the include file search path. -E Print preprocessor output on stdout. --output-dir DIR Create files in the directory DIR. -d, --debug Print debug messages. --ice Permit `Ice' prefix (for building Ice source code only) --all Generate code for Slice definitions in included files. --no-package Do not create Python packages. --checksum Generate checksums for Slice definitions. --prefix PREFIX Prepend filenames of Python modules with PREFIX. F:\>slice2java -h Usage: slice2java [options] slice-files... Options: --impl Generate sample implementations. --impl-tie Generate sample TIE implementations. ... F:\>slice2cpp -h Usage: slice2cpp [options] slice-files... Options: --impl Generate sample implementations. ...
0 -
No special reason. Implementing this for IcePy simply has not been a priority yet. slice2py is rarely used anyway. In most cases, you load the Slice code dynamically.0