OpenDDS
Snapshot(2023/04/28-20:55)
|
Typedefs | |
typedef DCPS::unique_ptr< xercesc::XercesDOMParser > | ParserPtr |
Functions | |
std::string | to_string (const xercesc::SAXParseException &ex) |
bool | get_parser (ParserPtr &parser, const std::string &filename, const std::string &xml) |
std::string | to_string (const XMLCh *in) |
bool | parse_bool (const XMLCh *in, bool &value) |
bool | parse_time (const XMLCh *in, time_t &value) |
bool | parse_domain_id_set (const xercesc::DOMNode *node, Security::DomainIdSet &domain_id_set) |
std::string | to_string (const xercesc::XMLException &ex) |
std::string | to_string (const xercesc::DOMException &ex) |
std::string | to_string (const xercesc::DOMNode *node) |
bool | parse_bool (const xercesc::DOMNode *node, bool &value) |
bool | parse_time (const xercesc::DOMNode *node, time_t &value) |
bool | is_element (const xercesc::DOMNode *node) |
typedef DCPS::unique_ptr<xercesc::XercesDOMParser> OpenDDS::Security::XmlUtils::ParserPtr |
Definition at line 32 of file XmlUtils.h.
OpenDDS_Security_Export bool OpenDDS::Security::XmlUtils::get_parser | ( | ParserPtr & | parser, |
const std::string & | filename, | ||
const std::string & | xml | ||
) |
Definition at line 71 of file XmlUtils.cpp.
References OpenDDS::DCPS::SecurityDebug::access_error, ACE_ERROR, FACE::TS::Initialize(), LM_ERROR, OpenDDS::DCPS::unique_ptr< T, Deleter >::reset(), OpenDDS::DCPS::security_debug, and to_string().
Referenced by OpenDDS::Security::Governance::load(), and OpenDDS::Security::Permissions::load().
|
inline |
Definition at line 81 of file XmlUtils.h.
References OPENDDS_END_VERSIONED_NAMESPACE_DECL.
Referenced by parse_domain_id_set().
|
inline |
Definition at line 64 of file XmlUtils.h.
References parse_bool(), and value.
OpenDDS_Security_Export bool OpenDDS::Security::XmlUtils::parse_bool | ( | const XMLCh * | in, |
bool & | value | ||
) |
Definition at line 150 of file XmlUtils.cpp.
References ACE_OS::strcasecmp(), and to_string().
Referenced by OpenDDS::DCPS::StaticDiscovery::add_domain_participant_secure(), OpenDDS::Security::Governance::Governance(), parse_bool(), OpenDDS::DCPS::StaticDiscovery::parse_publisherqos(), and OpenDDS::DCPS::StaticDiscovery::parse_subscriberqos().
OpenDDS_Security_Export bool OpenDDS::Security::XmlUtils::parse_domain_id_set | ( | const xercesc::DOMNode * | node, |
Security::DomainIdSet & | domain_id_set | ||
) |
Convert a node that's a DomainIdSet in the permissions and governance XML Schema in the security spec to a std::set of domain ids.
Definition at line 445 of file XmlUtils.cpp.
References OpenDDS::DCPS::SecurityDebug::access_error, ACE_ERROR, OpenDDS::DCPS::DisjointSequence::OrderedRanges< T >::add(), OpenDDS::Security::domain_id_max, OpenDDS::Security::domain_id_min, OpenDDS::DCPS::DisjointSequence::OrderedRanges< T >::empty(), is_element(), LM_ERROR, OPENDDS_END_VERSIONED_NAMESPACE_DECL, OpenDDS::DCPS::security_debug, and to_string().
Referenced by OpenDDS::Security::Governance::load(), OpenDDS::Security::Permissions::load(), and parse_time().
|
inline |
Definition at line 69 of file XmlUtils.h.
References OpenDDS_Security_Export, parse_domain_id_set(), parse_time(), and value.
OpenDDS_Security_Export bool OpenDDS::Security::XmlUtils::parse_time | ( | const XMLCh * | in, |
time_t & | value | ||
) |
Definition at line 245 of file XmlUtils.cpp.
References OpenDDS::DCPS::SecurityDebug::access_error, ACE_ERROR, ace_timezone(), OpenDDS::Security::domain_id_max, ENOTSUP, LM_ERROR, OpenDDS::DCPS::security_debug, to_string(), and value.
Referenced by OpenDDS::Security::Permissions::load(), and parse_time().
OpenDDS_Security_Export std::string OpenDDS::Security::XmlUtils::to_string | ( | const xercesc::SAXParseException & | ex | ) |
Definition at line 30 of file XmlUtils.cpp.
References OpenDDS::DCPS::SecurityDebug::access_error, OpenDDS::DCPS::SecurityDebug::access_warn, ACE_ERROR, LM_ERROR, OpenDDS::DCPS::security_debug, and OpenDDS::DCPS::to_dds_string().
Referenced by get_parser(), OpenDDS::Security::Governance::Governance(), OpenDDS::Security::Governance::load(), parse_bool(), parse_domain_id_set(), parse_time(), and to_string().
|
inline |
Definition at line 49 of file XmlUtils.h.
References to_string().
|
inline |
Definition at line 54 of file XmlUtils.h.
References to_string().
|
inline |
Definition at line 59 of file XmlUtils.h.
References to_string().
OpenDDS_Security_Export std::string OpenDDS::Security::XmlUtils::to_string | ( | const XMLCh * | in | ) |
Definition at line 142 of file XmlUtils.cpp.