OpenSplice ISO C++ 2 FACE API
v6.x
OpenSplice Future Airborne Capability Environment (FACE) ISO C++ 2 API
Config.hpp
Go to the documentation of this file.
1
/*
2
* Vortex OpenSplice
3
*
4
* This software and documentation are Copyright 2006 to 2021 ADLINK
5
* Technology Limited, its affiliated companies and licensors. All rights
6
* reserved.
7
*
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
11
*
12
* http://www.apache.org/licenses/LICENSE-2.0
13
*
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
19
*
20
*/
21
#ifndef VORTEX_FACE_CONFIGURATION_HPP_
22
#define VORTEX_FACE_CONFIGURATION_HPP_
23
24
#include "
Vortex_FACE.hpp
"
25
#include "
Vortex/FACE/ConnectionConfig.hpp
"
26
27
C_CLASS
(cf_data);
28
C_CLASS
(cf_element);
29
30
namespace
Vortex
{
31
namespace
FACE
{
32
33
typedef
enum
{
34
CONFIG_SCOPE_NONE
,
35
CONFIG_SCOPE_LIST
,
36
CONFIG_SCOPE_CONNECTION
37
}
CONFIG_SCOPE
;
38
39
class
VORTEX_FACE_API
Config
40
{
41
public
:
42
typedef
std::map<std::string, ConnectionConfig::shared_ptr>
CFG_MAP_TYPE
;
43
44
Config
();
45
46
::FACE::RETURN_CODE_TYPE
47
parse(
const
std::string &url);
48
49
ConnectionConfig::shared_ptr
50
find(
const
std::string &name);
51
52
static
std::string
53
addUrlPrefix(
const
std::string &url);
54
55
private
:
56
::FACE::RETURN_CODE_TYPE
57
parseElement(cf_element element);
58
59
::FACE::RETURN_CODE_TYPE
60
parseContainedElements(c_iter elements);
61
62
::FACE::RETURN_CODE_TYPE
63
parseElementData(cf_data data);
64
65
CFG_MAP_TYPE configs;
66
ConnectionConfig
*connection;
67
std::string scopedTag;
68
CONFIG_SCOPE scope;
69
};
70
71
};
/* namespace FACE */
72
};
/* namespace Vortex */
73
74
#endif
/* VORTEX_FACE_CONFIGURATION_HPP_ */
C_CLASS
C_CLASS(cf_data)
Vortex::FACE::Config::CFG_MAP_TYPE
std::map< std::string, ConnectionConfig::shared_ptr > CFG_MAP_TYPE
Definition:
Config.hpp:42
ConnectionConfig.hpp
Vortex::FACE::CONFIG_SCOPE_CONNECTION
Definition:
Config.hpp:36
FACE::RETURN_CODE_TYPE
RETURN_CODE_TYPE
Definition:
FACE_common.h:54
Vortex::FACE::CONFIG_SCOPE_LIST
Definition:
Config.hpp:35
FACE
Definition:
Vortex_FACE.hpp:26
Vortex::FACE::CONFIG_SCOPE_NONE
Definition:
Config.hpp:34
Vortex::FACE::ConnectionConfig::shared_ptr
Vortex::FACE::smart_ptr_traits< ConnectionConfig >::shared_ptr shared_ptr
Definition:
ConnectionConfig.hpp:33
Vortex::FACE::Config
Definition:
Config.hpp:39
Vortex_FACE.hpp
Vortex::FACE::CONFIG_SCOPE
CONFIG_SCOPE
Definition:
Config.hpp:33
Vortex
Definition:
AnyConnection.hpp:27
VORTEX_FACE_API
#define VORTEX_FACE_API
Definition:
Macros.hpp:34
Vortex::FACE::ConnectionConfig
Definition:
ConnectionConfig.hpp:30
face
cpp
include
Vortex
FACE
Config.hpp
Generated by
1.8.13