PreviousNext

The C++ Attributes cxx_new, cxx_static, cxx_lookup, and cxx_delegate

The IDL compiler uses an ACF to do the following for C++ applications:

· Declare a server's manager class and object constructor by using cxx_new.

· Declare interface member functions as static by using the cxx_static attribute, if they are not already declared in the interface definition file.

· Rename static member functions by using cxx_static.

· Specify a lookup function by using the cxx_lookup attribute. The server calls this application-specific function automatically if a client requests a known object not currently maintained by the server.

· Specify a delegate interface class by using the cxx_delegate attribute. A third-party class is encapsulated by a delegate class so it can be used in RPCs without modifying the original class.

· Control in which stub files application-specific header files are included. (See also the include statement and the cstub and sstub attributes.)

More:

Using cxx_new to Declare an Object Creator Function

Using cxx_static to Specify Static Interface Member Functions

Using cxx_lookup to Declare a Server's Object Lookup Function