OpenDDS  Snapshot(2023/04/28-20:55)
Parser.h
Go to the documentation of this file.
1 #ifndef OPENDDS_FACE_CONFIG_PARSER_H
2 #define OPENDDS_FACE_CONFIG_PARSER_H
3 
4 #include "FACE/OpenDDS_FACE_Export.h"
5 #include "QosSettings.h"
6 #include "ConnectionSettings.h"
7 #include "TopicSettings.h"
8 
13 
15 
16 namespace OpenDDS { namespace FaceTSS { namespace config {
17 
18 class OpenDDS_FACE_Export Parser {
19 public:
20  // Returns non-zero on failure
21  int parse(const char* filename);
22  int find_connection(const char* name, ConnectionSettings& target);
23  int find_topic(const char* name, TopicSettings& target);
24  int find_qos(const ConnectionSettings& conn, QosSettings& target);
25 
26 private:
27  static ConnectionMap connection_map_;
28  static QosMap qos_map_;
29  static TopicMap topic_map_;
30 
31  int parse_topic(ACE_Configuration_Heap& config,
33  const char* topic_name);
34  int parse_connection(ACE_Configuration_Heap& config,
36  const char* connection_name);
37  int parse_qos(ACE_Configuration_Heap& config,
39  const char* qos_name,
40  QosSettings::QosLevel level);
41  int parse_sections(ACE_Configuration_Heap& config,
42  const char* section_type,
43  bool required);
44 };
45 
46 } } }
47 
49 
50 #endif
#define ACE_BEGIN_VERSIONED_NAMESPACE_DECL
sequence< octet > key
static ConnectionMap connection_map_
Definition: Parser.h:27
#define ACE_END_VERSIONED_NAMESPACE_DECL
const char *const name
Definition: debug.cpp:60
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
static TopicMap topic_map_
Definition: Parser.h:29