ATLAS Offline Software
Classes | Namespaces | Typedefs | Functions | Variables
xmlUtilities.h File Reference
#include <memory>
#include <string>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/dom/DOM.hpp>
#include "CxxUtils/checker_macros.h"
Include dependency graph for xmlUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  myXerces::Lib
 

Namespaces

 myXerces
 

Typedefs

typedef std::basic_string< XMLCh > XercesString
 

Functions

XercesString fromNative (const char *str)
 
XercesString fromNative (const std::string &str)
 
std::string toNative (const XMLCh *str)
 
std::string toNative (const XercesString &str)
 

Variables

 ATLAS_NO_CHECK_FILE_THREAD_SAFETY
 

Typedef Documentation

◆ XercesString

typedef std::basic_string<XMLCh> XercesString

Definition at line 32 of file xmlUtilities.h.

Function Documentation

◆ fromNative() [1/2]

XercesString fromNative ( const char *  str)
inline

Definition at line 34 of file xmlUtilities.h.

34  {
35  auto xDeleter = [&](XMLCh buf[]) {
37  };
38 
39  std::unique_ptr<XMLCh[], decltype(xDeleter)> ptr(xercesc::XMLString::transcode(str), xDeleter);
40 
41  return XercesString(ptr.get());
42 }

◆ fromNative() [2/2]

XercesString fromNative ( const std::string &  str)
inline

Definition at line 45 of file xmlUtilities.h.

45  {
46  return fromNative(str.c_str());
47 }

◆ toNative() [1/2]

std::string toNative ( const XercesString str)
inline

Definition at line 61 of file xmlUtilities.h.

61  {
62  return toNative(str.c_str());
63 }

◆ toNative() [2/2]

std::string toNative ( const XMLCh *  str)
inline

Definition at line 50 of file xmlUtilities.h.

50  {
51  auto cDeleter = [&](char buf[]) {
53  };
54 
55  std::unique_ptr<char[], decltype(cDeleter)> ptr(xercesc::XMLString::transcode(str), cDeleter);
56 
57  return std::string(ptr.get());
58 }

Variable Documentation

◆ ATLAS_NO_CHECK_FILE_THREAD_SAFETY

ATLAS_NO_CHECK_FILE_THREAD_SAFETY

Definition at line 20 of file xmlUtilities.h.

toNative
std::string toNative(const XMLCh *str)
Definition: xmlUtilities.h:50
XercesString
std::basic_string< XMLCh > XercesString
Definition: xmlUtilities.h:32
python.DecayParser.buf
buf
print ("=> [%s]"cmd)
Definition: DecayParser.py:27
fromNative
XercesString fromNative(const char *str)
Definition: xmlUtilities.h:34
python.EventInfoMgtInit.release
release
Definition: EventInfoMgtInit.py:24
str
Definition: BTagTrackIpAccessor.cxx:11