The configuration file uses XML format. Let's look at a very basic configuration file, just to get an idea of its contents. You will learn the meaning of each line as you read the rest of this section:
Example Configuration File
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- A Configuration file may be used by several persistence services specifying multiple <persistence_service> entries --> <dds> <!-- QoS LIBRARY SECTION --> <qos_library name="QosLib1"> <qos_profile name="QosProfile1"> <datawriter_qos name="WriterQos1"> <history> <kind>DDS_KEEP_ALL_HISTORY_QOS</kind> </history> </datawriter_qos> <datareader_qos name="ReaderQos1"> <reliability> <kind>DDS_RELIABLE_RELIABILITY_QOS</kind> </reliability> <history> <kind>DDS_KEEP_ALL_HISTORY_QOS</kind> </history> </datareader_qos> </qos_profile> </qos_library> <!-- PERSISTENCE SERVICE SECTION --> <persistence_service name="Srv1"> <!-- REMOTE ADMINISTRATION SECTION --> <administration> <domain_id>72</domain_id> <distributed_logger> <enabled>true</enabled> </distributed_logger> </administration> <!-- PERSISTENT STORAGE SECTION --> <persistent_storage> <filesystem> <directory>/tmp</directory> <file_prefix>PS</file_prefix> </filesystem> </persistent_storage> <!-- DOMAINPARTICIPANT SECTION --> <participant name="Part1"> <domain_id>71</domain_id> <!-- PERSISTENCE GROUP SECTION --> <persistence_group name="PerGroup1" filter="*"> <single_publisher>true</single_publisher> <single_subscriber>true</single_subscriber> <datawriter_qos base_name="QosLib1::QosProfile1"/> <datareader_qos base_name="QosLib1::QosProfile1"/> </persistence_group> </participant> </persistence_service> </dds>
© 2016 RTI