ComponentDescriptionDTO¶
-
struct
cppmicroservices::service::component::runtime::dto::
ComponentDescriptionDTO
¶ - #include <cppmicroservices/servicecomponent/runtime/dto/ComponentDescriptionDTO.hpp>
A representation of a declared component description.
Public Members
-
std::string
name
¶ The name of the component.
This is declared in the
name
attribute of thecomponent
element. This must be the default name if the component description does not declare a name.
-
std::string
scope
¶ The service scope.
This is declared in the
scope
attribute of theservice
element. This must be empty string if the component description does not declare any service interfaces.
-
std::string
implementationClass
¶ The fully qualified name of the implementation class.
This is declared in the
implementation-class
element.
-
bool
defaultEnabled
¶ The initial enabled state.
This is declared in the
enabled
attribute of thecomponent
element.
-
bool
immediate
¶ The immediate state.
This is declared in the
immediate
attribute of thecomponent
element.
-
std::vector<std::string>
serviceInterfaces
¶ The fully qualified names of the service interfaces.
These are declared in the
interface
attribute of theprovide
elements. The vector must be empty if the component description does not declare any service interfaces.
-
std::unordered_map<std::string, cppmicroservices::Any>
properties
¶ The declared component properties.
These are declared in the
property
andproperties
elements.
-
std::vector<ReferenceDTO>
references
¶ The referenced services.
These are declared in the
reference
elements. The vector must be empty if the component description does not declare references to any services.
-
std::string
activate
¶ The name of the activate method.
This is declared in the
activate
attribute of thecomponent
element. This must be the default value which is “Activate”, if the component description does not declare an activate method name.
-
std::string
deactivate
¶ The name of the deactivate method.
This is declared in the
deactivate
attribute of thecomponent
element. This must be the default value which is “Deactivate”, if the component description does not declare a deactivate method name.
-
std::string
modified
¶ The name of the modified method.
This is declared in the
modified
attribute of thecomponent
element. This must be the default value which is “Modified”, if the component description does not declare a modified method name.
-
std::string