EXT_CLASS

The EXT_CLASS constant specifies the name of the C++ class that represents the EngExtCpp extension library.

    #ifndef EXT_CLASS
    #define EXT_CLASS Extension
    #endif
   

Remarks

The default value of EXT_CLASS is Extension. You can change this value by defining EXT_CLASS before you include the header file Engextcpp.hpp.

Each extension command in the library is declared as a member of the class EXT_CLASS using the macro EXT_COMMAND_METHOD. For example, a library with two extension commands, extcmd and anotherextcmd, could define the class EXT_CLASS as follows:

class EXT_CLASS : public ExtExtension
{
public:
    EXT_COMMAND_METHOD(extcmd);
    EXT_COMMAND_METHOD(anotherextcmd);
}

Extension commands that have been declared by using EXT_COMMAND_METHOD should be defined by using EXT_COMMAND and should be exported from the library.

The EXT_DECLARE_GLOBALS macro creates a single instance of the EXT_CLASS class.

Requirements

Header

Engextcpp.hpp (include Engextcpp.hpp)

See also

EXT_COMMAND

EXT_COMMAND_METHOD

EXT_DECLARE_GLOBALS

 

 

Send comments about this topic to Microsoft