DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Namespaces | Macros | Typedefs | Functions
Elements.h File Reference
#include <cmath>
#include <string>
#include <vector>
#include <stdexcept>
#include <JSON/config.h>

Go to the source code of this file.

Classes

class  dd4hep::json::NodeList
 Class describing a list of JSON nodes. More...
 
class  dd4hep::json::Handle_t
 Class to easily access the properties of single JsonElements. More...
 
class  dd4hep::json::Collection_t
 Class to support the access to collections of JsonNodes (or JsonElements) More...
 
class  dd4hep::json::Document
 Class supporting the basic functionality of an JSON document. More...
 
class  dd4hep::json::DocumentHolder
 Class supporting the basic functionality of an JSON document including ownership. More...
 
class  dd4hep::json::Element
 User abstraction class to manipulate JSON elements within a document. More...
 

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::json
 Namespace for the AIDA detector description toolkit supporting JSON utilities.
 

Macros

#define RAD_2_DEGREE   57.295779513082320876798154814105
 
#define M_PI   3.14159265358979323846
 
#define INLINE   inline
 

Typedefs

typedef const JsonAttr * dd4hep::json::Attribute
 

Functions

std::string dd4hep::json::_toString (const Attribute attr)
 Convert json attribute to STL string. More...
 
std::string dd4hep::json::_toString (const char *toTranscode)
 Convert json string to STL string. More...
 
std::string dd4hep::json::_toString (const std::string &s)
 Do-nothing version. Present for completeness and argument interchangeability. More...
 
std::string dd4hep::json::_toString (unsigned long i, const char *fmt="%lu")
 Format unsigned long integer to string with arbitrary format. More...
 
std::string dd4hep::json::_toString (unsigned int i, const char *fmt="%u")
 Format unsigned integer (32 bits) to string with arbitrary format. More...
 
std::string dd4hep::json::_toString (int i, const char *fmt="%d")
 Format signed integer (32 bits) to string with arbitrary format. More...
 
std::string dd4hep::json::_toString (long i, const char *fmt="%ld")
 Format signed long integer to string with arbitrary format. More...
 
std::string dd4hep::json::_toString (float d, const char *fmt="%.17e")
 Format single procision float number (32 bits) to string with arbitrary format. More...
 
std::string dd4hep::json::_toString (double d, const char *fmt="%.17e")
 Format double procision float number (64 bits) to string with arbitrary format. More...
 
std::string dd4hep::json::_ptrToString (const void *p, const char *fmt="%p")
 Format void pointer (64 bits) to string with arbitrary format. More...
 
template<typename T >
std::string dd4hep::json::_toString (const T *p, const char *fmt="%p")
 Format void pointer (64 bits) to string with arbitrary format. More...
 
template<typename T >
void dd4hep::json::_toDictionary (const char *name, T value)
 Helper function to populate the evaluator dictionary. More...
 
void dd4hep::json::_toDictionary (const char *name, const char *value)
 Helper function to populate the evaluator dictionary. More...
 
void dd4hep::json::_toDictionary (const std::string &name, const char *value)
 Helper function to populate the evaluator dictionary. More...
 
void dd4hep::json::_toDictionary (const char *name, float value)
 Helper function to populate the evaluator dictionary. More...
 
void dd4hep::json::_toDictionary (const char *name, double value)
 Helper function to populate the evaluator dictionary. More...
 
std::string dd4hep::json::getEnviron (const std::string &env)
 Helper function to lookup environment from the expression evaluator. More...
 
bool dd4hep::json::_toBool (const char *value)
 Conversion function from raw unicode string to bool. More...
 
int dd4hep::json::_toInt (const char *value)
 Conversion function from raw unicode string to int. More...
 
long dd4hep::json::_toLong (const char *value)
 Conversion function from raw unicode string to long. More...
 
float dd4hep::json::_toFloat (const char *value)
 Conversion function from raw unicode string to float. More...
 
double dd4hep::json::_toDouble (const char *value)
 Conversion function from raw unicode string to double. More...
 
template<>
INLINE std::string dd4hep::json::Handle_t::attr< std::string > (const char *tag_value) const
 
void dd4hep::json::dumpTree (Handle_t elt)
 
void dd4hep::json::dumpTree (Element elt)
 
void dd4hep::json::dumpTree (const JsonElement *elt)
 

Macro Definition Documentation

◆ INLINE

#define INLINE   inline

Definition at line 201 of file Elements.h.

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 30 of file Elements.h.

◆ RAD_2_DEGREE

#define RAD_2_DEGREE   57.295779513082320876798154814105

Definition at line 27 of file Elements.h.