Classes | Namespaces | Defines

utilities/cpp_utilities.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nitro::DynamicArrayKeeper< type >
 Class automatically deletes dynamic arrays. More...
class  nitro::DynamicObjectKeeper< type >
 Class automatically deletes dynamic objects. More...

Namespaces

namespace  nitro

Defines

#define WIN32_PLATFORM
#define EXTERN_C   extern "C"
#define VIRTUAL   virtual
#define NON_VIRTUAL
#define DECLARE_DESTRUCTOR(VIRTUALITY, TYPE_NAME)   VIRTUALITY ~TYPE_NAME();
#define DEFINE_SIMPLE_DESTRUCTOR(TYPE_NAME)
#define DEFINE_RELEASING_DESTRUCTOR(TYPE_NAME, RELEASE_FUNCTION_NAME)
#define DEFINE_DYNAMIC_ARRAY(TYPE_NAME, ARRAY_NAME, ARRAY_SIZE)
#define DEFINE_DYNAMIC_OBJECT(TYPE_NAME, OBJECT_NAME)
#define DECLARE_PLUGIN_BEGIN(PLUGIN_NAME)   class PLUGIN_NAME{
#define DECLARE_PLUGIN_METHOD_0(METHOD_NAME)
#define DECLARE_PLUGIN_METHOD_1(METHOD_NAME, TYPE_1_NAME)
#define DECLARE_PLUGIN_END()   };
#define DECLARE_PLUGIN_GATEWAY(TYPE_NAME)

Define Documentation

#define DECLARE_DESTRUCTOR (   VIRTUALITY,
  TYPE_NAME 
)    VIRTUALITY ~TYPE_NAME();

Definition at line 23 of file cpp_utilities.h.

#define DECLARE_PLUGIN_BEGIN (   PLUGIN_NAME  )     class PLUGIN_NAME{

Definition at line 57 of file cpp_utilities.h.

#define DECLARE_PLUGIN_END (  )     };

Definition at line 72 of file cpp_utilities.h.

#define DECLARE_PLUGIN_GATEWAY (   TYPE_NAME  ) 
Value:
EXTERN_C NITRO_EXPORTING TYPE_NAME *    Get##TYPE_NAME##Instance( void )\
        {\
                return( new TYPE_NAME() );\
        }\
        EXTERN_C NITRO_EXPORTING void                   Release##TYPE_NAME##Instance( TYPE_NAME * Instance )\
        {\
                delete Instance;\
        }

Definition at line 75 of file cpp_utilities.h.

#define DECLARE_PLUGIN_METHOD_0 (   METHOD_NAME  ) 
Value:
private:\
                void    ( * FunctionPointer##METHOD_NAME )( void );\
        public:\
                void    METHOD_NAME( void );

Definition at line 60 of file cpp_utilities.h.

#define DECLARE_PLUGIN_METHOD_1 (   METHOD_NAME,
  TYPE_1_NAME 
)
Value:
private:\
                void    ( * FunctionPointer##METHOD_NAME )( TYPE_1_NAME );\
        public:\
                void    METHOD_NAME( TYPE_1_NAME );

Definition at line 66 of file cpp_utilities.h.

#define DEFINE_DYNAMIC_ARRAY (   TYPE_NAME,
  ARRAY_NAME,
  ARRAY_SIZE 
)
Value:
TYPE_NAME *                                                             ARRAY_NAME( new TYPE_NAME[ ARRAY_SIZE ] );\
        nitro::DynamicArrayKeeper< TYPE_NAME >  ARRAY_NAME##Keeper( ARRAY_NAME );

Definition at line 49 of file cpp_utilities.h.

Referenced by nitro::ProcessAbstraction::CreateProcess(), and nitro::MVC::LoadModules().

#define DEFINE_DYNAMIC_OBJECT (   TYPE_NAME,
  OBJECT_NAME 
)
Value:
TYPE_NAME *                                                             OBJECT_NAME( new TYPE_NAME );\
        nitro::DynamicObjectKeeper< TYPE_NAME > OBJECT_NAME##Keeper( OBJECT_NAME );

Definition at line 53 of file cpp_utilities.h.

#define DEFINE_RELEASING_DESTRUCTOR (   TYPE_NAME,
  RELEASE_FUNCTION_NAME 
)
Value:
TYPE_NAME::~TYPE_NAME()\
        {\
                try\
                {\
                        this->RELEASE_FUNCTION_NAME();\
                }\
                catch( ... )\
                {\
                }\
        }

Definition at line 37 of file cpp_utilities.h.

#define DEFINE_SIMPLE_DESTRUCTOR (   TYPE_NAME  ) 
Value:
TYPE_NAME::~TYPE_NAME()\
        {\
                try\
                {\
                }\
                catch( ... )\
                {\
                }\
        }

Definition at line 26 of file cpp_utilities.h.

#define EXTERN_C   extern "C"

Definition at line 17 of file cpp_utilities.h.

#define NON_VIRTUAL

Definition at line 21 of file cpp_utilities.h.

#define VIRTUAL   virtual

Definition at line 19 of file cpp_utilities.h.

#define WIN32_PLATFORM

Definition at line 5 of file cpp_utilities.h.


Generated by  doxygen 1.6.1