VGM Version 5.3
Loading...
Searching...
No Matches
XmlVGM Namespace Reference

XmlVGM utilities. More...

Classes

class  AGDDExporter
 Class for generation of geometry data files in XML, in the AGDD XML format. More...
 
class  AGDDWriter
 The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by AGDD.dtd (ATLAS Generic Detector Description) More...
 
class  GDMLExporter
 Class for generation of geometry data files in XML, in the GDML format. More...
 
class  GDMLWriter
 The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by GDML scheme. More...
 
class  IWriter
 The interface for the XML writer that writes VGM geometry objects to XML: More...
 
class  Maps
 Utility class for mapping XML element values to their names within the XML exporter precision. More...
 
class  VExporter
 Class for generation of geometry data files in XML, the XML format is independent from the geometry object model. More...
 

Typedefs

typedef std::vector< double > ThreeVector
 

Functions

std::string UpdateName (const std::string &name, const std::string &extension="")
 
std::string StripName (const std::string &name, const std::string &extension="")
 
std::string AppendName (const std::string &name, int size)
 
std::string IsotopeName (const VGM::IIsotope *isotope)
 
void CutName (std::string &name)
 
void CutName (std::string &name, int size)
 
std::ostream & SmartPut (std::ostream &out, int size, int precision, double tolerance, double number, const std::string &separator)
 
std::ostream & SmartPut (std::ostream &out, int size, int precision, double tolerance, const std::string &separator1, double number, const std::string &separator2)
 
std::string Date ()
 

Variables

const char fgkCharReplacement = '_'
 
const std::string fgkNotAllowedChars
 
const std::string fgkNotAllowedChars1
 

Detailed Description

XmlVGM utilities.

Utility functions

Author
I. Hrivnacova, IPN Orsay

Typedef Documentation

◆ ThreeVector

typedef std::vector<double> XmlVGM::ThreeVector

Definition at line 43 of file VExporter.h.

Function Documentation

◆ UpdateName()

std::string XmlVGM::UpdateName ( const std::string & name,
const std::string & extension = "" )

Remove spaces after the name if present, replace not allowed characters with fgkCharReplacement inside names and apped the specified extension.

Definition at line 31 of file utilities.cxx.

◆ StripName()

std::string XmlVGM::StripName ( const std::string & name,
const std::string & extension = "" )

Remove specified extension from the name if present

Definition at line 62 of file utilities.cxx.

◆ AppendName()

std::string XmlVGM::AppendName ( const std::string & name,
int size )

Append name with spaces to get the desired size

Definition at line 71 of file utilities.cxx.

◆ IsotopeName()

std::string XmlVGM::IsotopeName ( const VGM::IIsotope * isotope)

Generate isotope name in the form Symbol_N

Definition at line 86 of file utilities.cxx.

◆ CutName() [1/2]

void XmlVGM::CutName ( std::string & name)

Removes spaces after the name if present

Definition at line 107 of file utilities.cxx.

◆ CutName() [2/2]

void XmlVGM::CutName ( std::string & name,
int size )

Definition at line 116 of file utilities.cxx.

◆ SmartPut() [1/2]

std::ostream & XmlVGM::SmartPut ( std::ostream & out,
int size,
int precision,
double tolerance,
double number,
const std::string & separator )

Help function to supress - sign in case the number == 0 within the given precision

Definition at line 124 of file utilities.cxx.

◆ SmartPut() [2/2]

std::ostream & XmlVGM::SmartPut ( std::ostream & out,
int size,
int precision,
double tolerance,
const std::string & separator1,
double number,
const std::string & separator2 )

Help function to supress - sign in case the number == 0 within the given precision

Definition at line 147 of file utilities.cxx.

◆ Date()

std::string XmlVGM::Date ( )

Convert date to string

Definition at line 174 of file utilities.cxx.

Variable Documentation

◆ fgkCharReplacement

const char XmlVGM::fgkCharReplacement = '_'

Definition at line 52 of file utilities.h.

◆ fgkNotAllowedChars

const std::string XmlVGM::fgkNotAllowedChars
Initial value:
=
" +-*/&<>%^$()"

Definition at line 53 of file utilities.h.

◆ fgkNotAllowedChars1

const std::string XmlVGM::fgkNotAllowedChars1
Initial value:
=
"0123456789"

Definition at line 55 of file utilities.h.