Service creation properties. More...
#include <arcane/core/ServiceProperty.h>
Public Member Functions | |
| ServiceProperty (const char *aname, int atype, eServiceFactoryProperties aproperties) ARCANE_NOEXCEPT | |
| Constructs an instance for a service named aname and of type atype with properties properties. | |
| ServiceProperty (const char *aname, int atype) ARCANE_NOEXCEPT | |
| Constructs an instance for a service named aname and of type atype. | |
| ServiceProperty (const char *aname, eServiceType atype) ARCANE_NOEXCEPT | |
| Constructs an instance for a service named aname and of type atype. | |
| const char * | name () const |
| Service name. | |
| int | type () const |
| Service type (combination of eServiceType). | |
| eServiceFactoryProperties | properties () const |
| Service properties (combination of eServiceFactoryProperties). | |
Service creation properties.
This class is used in service registration macros and can therefore be instantiated as a global variable before entering the code's main(). It should therefore only contain Plain Object Data (POD) fields.
Generally, instances of this class are used when registering a service via the ARCANE_REGISTER_SERVICE() macro.
In the constructor, the type and properties parameters can use a combination of enumerated values. For example, to specify a service that can be used both in the dataset and at the subdomain level, you can do the following:
Definition at line 97 of file ServiceProperty.h.
|
inline |
Constructs an instance for a service named aname and of type atype with properties properties.
Definition at line 105 of file ServiceProperty.h.
|
inline |
Constructs an instance for a service named aname and of type atype.
Definition at line 113 of file ServiceProperty.h.
References Arcane::SFP_None.
|
inline |
Constructs an instance for a service named aname and of type atype.
Definition at line 121 of file ServiceProperty.h.
References Arcane::SFP_None.
|
inline |
Service name.
Definition at line 131 of file ServiceProperty.h.
|
inline |
Service properties (combination of eServiceFactoryProperties).
Definition at line 137 of file ServiceProperty.h.
|
inline |
Service type (combination of eServiceType).
Definition at line 134 of file ServiceProperty.h.