Defines

maciACSComponentDefines.h File Reference

#include <acserrACSbaseExImpl.h>
#include <baciCharacteristicComponentImpl.h>
#include <acserr.h>
#include <maciErrType.h>
Include dependency graph for maciACSComponentDefines.h:

Go to the source code of this file.

Defines

#define MACI_DLL_SUPPORT_FUNCTIONS(Class, args...)

Detailed Description

This file contains macros that are very helpful in creating distributed objects.


Define Documentation

#define MACI_DLL_SUPPORT_FUNCTIONS (   Class,
  args... 
)
Value:
ACS_DLL_UNMANGLED_EXPORT PortableServer::Servant ConstructComponent( \
                          CORBA::ULong, \
                                      const char * name_p, \
                                      const char * type_p, \
                      maci::ContainerServices * containerServices) \
{ \
    ACE_UNUSED_ARG(type_p); \
    Class,##args* servant_p =0; \
    servant_p = new Class,##args(name_p, containerServices); \
    return servant_p; \
} \
\
ACS_DLL_UNMANGLED_EXPORT bool DLLOpen(int, char**) \
{ \
    return true; \
} \
\
ACS_DLL_UNMANGLED_EXPORT void DLLClose() \
{ \
}

MACI DLL Support Functions Macro This macro implements the DLL support functions for a specific class.

ConstructComponent(...) creates a CORBA object of type "Class".
DLLOpen(...) presently does nothing.
DLLClose() presently does nothing...

Parameters:
Class Name of the class
args... (variable number of arguements) WE need it that template class with template list longer than one can be send as a class