Debugging Tools for Windows |
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
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:
{
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.
Headers: Defined in Engextcpp.hpp. Include Engextcpp.hpp.