<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="file:///opt/rti/rti_connext_dds-5.2.0/resource/schema/rti_record.xsd">

    <recorder name="sim1">
        <annotation>
            <documentation>
                Record AAR for SIM 1
            </documentation>
        </annotation>

        <!--
            0: silent (Core Libraries and the Recordtool)
            1: errors (Core Libraries and the Recordtool) (default)
            2: warnings (the Recordtool only)
            3: warnings (Core Libraries and the Recordtool)
            4: information (the Recordtool only)
            5: tracing (the Recordtool only)
            6: tracing (Core Libraries and the Recordtool)
        -->
        <verbosity> 3 </verbosity>
        
        <!-- Don't automatically start recording, wait for the remote 
                control command admin message (Default for this field is True) -->
        <auto_start> False </auto_start>

        <!-- Enable remote administration of Recorder in domain 101. Enable
             Distributed Logger with filter level set to warning. -->
        <remote_access>
            <enabled> true </enabled>
            <remote_access_domain> control_101 </remote_access_domain>
            <distributed_logger>
                <enabled> true </enabled>
                <filter_level>WARNING</filter_level>
            </distributed_logger>
        </remote_access>

        <!-- Specify where to store the recorded data. -->
        <recorder_database>
            <database_name>aar_sim1.dat</database_name>
            <flush_period>3</flush_period>
            <max_file_size>100 GB</max_file_size>
            <overwrite>true</overwrite>
            <set_number>0</set_number>
            <user_topic_metadata_fields>
                <included>
                    <field>SampleInfo_source_timestamp</field>
                    <field>SampleInfo_instance_handle</field>
                </included>
            </user_topic_metadata_fields>
        </recorder_database>

        <!-- Create a DDS DomainParticipant in domain 1 with default QoS. 
             This domain will be used for remote administration and Distributed
             Logger too. 
        -->
        <domain name="sim_1">
            <domain_id> 1 </domain_id>
            <deserialize_mode>RTIDDS_DESERIALIZEMODE_NEVER</deserialize_mode>
        </domain>

        <!-- Define the remote control domain (used in remote access section)
             Note, the deserialize mode isn't really used here
        -->
        <domain name="control_101">
            <domain_id> 101 </domain_id>
        </domain>
        
        <!-- Create a TopicGroup. A TopicGroup is a collection of Topics 
         whose names match the topic_expr. The field_expr specifies 
         which fields in the Topics to record. Note that a TopicGroup is 
         not bound to a particular domain yet. 
         In this example, the TopicGroup All means all fields in all Topics -->
        <topic_group name="All">
            <topics>
                <topic_expr>*</topic_expr>
                <!--
                Eventually, list topics specifically ...
                <topic_expr>panel_state</topic_expr>
                <topic_expr>EAConfiguration</topic_expr>
                <topic_expr>EAButtonPressed</topic_expr>
                <topic_expr>EAViewState</topic_expr>
                <topic_expr>ea_alerts_page</topic_expr>
                -->
            </topics>
            <field_expr> * </field_expr>
            <include_meta_columns>true</include_meta_columns>
        </topic_group>

        <!-- Create a RecordGroup. A RecordGroup controls which TopicGroups
         are recorded for a set of domains. Each recorded Topic is stored in 
         a table with the format "record_group.domain.Topic" 
         In this example, we want to record data from topics in TopicGroup "All"
         from "domain0." -->
        <record_group name="RecordAll">
            <!-- specify which domains to record from -->
            <domain_ref>
                <element> sim_1 </element>
            </domain_ref>
            <!-- specify which topics to record -->
            <topic_ref>
                <element> All </element>
            </topic_ref>
        </record_group>
    </recorder>
    
</dds>
