Home Help Center

Is there any operation for slice2xxx to generate example servant code ?

rc_hzrc_hz Member Eric RCOrganization: www.genband.comProject: No project yet ✭✭✭
Is there any operation for slice2xxx to generate example servant code such as some corba tools?
$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:)

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    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.

    Regards
  • rc_hzrc_hz Member Eric RCOrganization: www.genband.comProject: No project yet ✭✭✭
    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.
    ...
    
    
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
Sign In or Register to comment.