12 #ifndef HPP_SERVICE_SERVICEPROPERTY_HPP_ 13 #define HPP_SERVICE_SERVICEPROPERTY_HPP_ 21 #include "osapi/osapi_type.h" 23 #include "routingservice/routingservice_infrastructure.h" 24 #include "routingservice/routingservice_service.h" 26 #include <dds/core/SafeEnumeration.hpp> 27 #include <rti/recording/PropertySet.hpp> 29 namespace rti {
namespace recording {
57 XML_CONVERTER_APPLICATION,
68 typedef dds::core::safe_enum<ApplicationRoleKind_def> ApplicationRoleKind;
73 struct XmlConverterRoleKind_def {
82 typedef dds::core::safe_enum<XmlConverterRoleKind_def> XmlConverterRoleKind;
88 struct IndexerModeKind_def {
96 typedef dds::core::safe_enum<IndexerModeKind_def> IndexerModeKind;
98 typedef rti::routing::PropertySet PropertySet;
113 application_name_(
""),
115 enable_administration_(false),
116 administration_domain_id_(0),
117 enable_monitoring_(false),
118 monitoring_domain_id_(0),
120 enforce_xsd_validation_(true),
121 ignore_default_files_(false),
122 output_cfg_file_(
""),
124 reverse_mode_(false),
125 xml_converter_role_(XmlConverterRoleKind::RECORD_CONVERT),
126 indexer_mode_(IndexerModeKind::INSTANCE_INDEXING)
147 cfg_file_ = cfg_file;
157 return service_name_;
172 service_name_ = service_name;
182 return application_name_;
201 application_name_ = application_name;
212 return domain_id_base_;
220 return enforce_xsd_validation_;
231 enforce_xsd_validation_ = enforce;
246 domain_id_base_ = domain_id;
256 return enable_administration_;
267 enable_administration_ = enable_administration;
277 return administration_domain_id_;
292 administration_domain_id_ = domain_id;
302 return enable_monitoring_;
313 enable_monitoring_ = enable_monitoring;
322 return monitoring_domain_id_;
337 monitoring_domain_id_ = domain_id;
346 return application_role_;
356 application_role_ = application_role;
365 return ignore_default_files_;
379 ignore_default_files_ = ignore;
388 return license_file_;
399 license_file_ = license_file;
406 const std::string output_cfg_file()
const 408 return output_cfg_file_;
415 const std::string & output_cfg_file)
417 output_cfg_file_ = output_cfg_file;
437 debug_mode_ = debug_mode;
447 return reverse_mode_;
458 reverse_mode_ = reverse_mode;
466 XmlConverterRoleKind xml_converter_role()
const 468 return xml_converter_role_;
475 const XmlConverterRoleKind & xml_converter_role)
477 xml_converter_role_ = xml_converter_role;
485 IndexerModeKind indexer_mode()
const 487 return indexer_mode_;
496 indexer_mode_ = indexer_mode;
504 const std::string& db_directory()
const 506 return db_directory_;
515 db_directory_ = db_directory;
546 user_env_ = user_environment;
552 std::string cfg_file_;
554 std::string service_name_;
555 std::string application_name_;
556 int32_t domain_id_base_;
557 bool enable_administration_;
558 int32_t administration_domain_id_;
559 bool enable_monitoring_;
560 int32_t monitoring_domain_id_;
561 ApplicationRoleKind application_role_;
562 bool enforce_xsd_validation_;
563 bool ignore_default_files_;
564 std::string license_file_;
566 std::string output_cfg_file_;
569 XmlConverterRoleKind xml_converter_role_;
570 IndexerModeKind indexer_mode_;
571 std::string db_directory_;
572 PropertySet user_env_;
const ApplicationRoleKind & application_role() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:344
int32_t administration_domain_id() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:275
PropertySet & user_environment()
Non-const getter for modification that can be used to add elements individually. (see setter with the...
Definition: ServiceProperty.hpp:531
ServiceProperty & enforce_xsd_validation(bool enforce)
Controls whether the service applies XSD validation to the loaded configuration.
Definition: ServiceProperty.hpp:229
int32_t monitoring_domain_id() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:320
ServiceProperty & enable_administration(bool enable_administration)
Set this to true to enable remote administration or false to disable it.
Definition: ServiceProperty.hpp:265
const PropertySet & user_environment() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:522
ServiceProperty & debug_mode(bool debug_mode)
Set this to true to enable debug mode or false to disable it.
Definition: ServiceProperty.hpp:435
Converter mode.
Definition: ServiceProperty.hpp:53
int32_t domain_id_base() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:210
bool reverse_mode() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:445
ServiceProperty & ignore_default_files(bool ignore)
Set it to true to avoid loading the standard files usually loaded by RTI Recording Service...
Definition: ServiceProperty.hpp:377
ServiceProperty & application_name(const std::string &application_name)
Assigns a name to the execution of the RTI Recording Service.
Definition: ServiceProperty.hpp:199
type
The underlying enum type.
Definition: ServiceProperty.hpp:41
ServiceProperty & monitoring_domain_id(int32_t domain_id)
If ServiceProperty::enable_monitoring is true, this is the domain ID to use for remote monitoring...
Definition: ServiceProperty.hpp:335
Configuration for a RTI Recording Service object.
Definition: ServiceProperty.hpp:105
const std::string & application_name() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:180
ServiceProperty & user_environment(const PropertySet &user_environment)
Dictionary of user variables. The dictionary provides a parallel way to expand XML configuration vari...
Definition: ServiceProperty.hpp:544
bool ignore_default_files() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:363
const std::string & service_name() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:155
ServiceProperty & administration_domain_id(int32_t domain_id)
If ServiceProperty::enable_administration is true, this is the domain ID to use for remote administra...
Definition: ServiceProperty.hpp:290
Record mode.
Definition: ServiceProperty.hpp:45
Replay mode.
Definition: ServiceProperty.hpp:49
Definition: ServiceProperty.hpp:37
ServiceProperty & license_file(const std::string &license_file)
Path to an RTI Connext license file. This field is only used by license-managed versions of the tool...
Definition: ServiceProperty.hpp:397
const std::string & license_file() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:386
bool enable_monitoring() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:300
The RTI namespace.
Definition: RecordingServiceImpl.hpp:22
ServiceProperty & enable_monitoring(bool enable_monitoring)
Set it to true to enable remote monitoring or false to disable it.
Definition: ServiceProperty.hpp:311
const std::string & cfg_file() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:135
ServiceProperty & cfg_file(const std::string &cfg_file)
Path to an RTI Recording Service configuration file.
Definition: ServiceProperty.hpp:145
ServiceProperty()
Creates a property object with default settings.
Definition: ServiceProperty.hpp:110
bool enforce_xsd_validation() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:218
bool enable_administration() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:254
ServiceProperty & service_name(const std::string &service_name)
The name of the RTI Recording Service configuration to run.
Definition: ServiceProperty.hpp:170
ServiceProperty & domain_id_base(int32_t domain_id)
Value that is added to the domain IDs of the domain routes in the XML configuration.
Definition: ServiceProperty.hpp:244
ServiceProperty & application_role(ApplicationRoleKind application_role)
Selects the operation mode of the service.
Definition: ServiceProperty.hpp:354
ServiceProperty & reverse_mode(bool reverse_mode)
Set this to true to enable reverse mode or false to disable it.
Definition: ServiceProperty.hpp:456
bool debug_mode() const
Getter (see setter with the same name)
Definition: ServiceProperty.hpp:424