GOAT (Geometrical optics application tool) 0.1
Loading...
Searching...
No Matches
xml.h File Reference
#include "tinyxml2.h"
#include "raytrace.h"
#include <string>
#include "xmltoken.h"
#include <vector>
#include <sstream>
#include <locale>
#include <iomanip>

Go to the source code of this file.

Classes

class  GOAT::XML::xmlReader
 This class provides functionality to read a XML-file This function reads the XML file . It can also perform calculations. Beware: The parser is case sensitive. Element names starting with capital letters (except of "real" and "imag" for complex numbers), whereas values are always lower case The structure of the XML-File is as follows (the order of the subdivision may be changed): Signs: o: optional, n: necessary, i: independend parameters, i.e. this parameter is valid for all types Values: float: floating point number int: integer number bool: possible values: true or false. More...
class  GOAT::XML::xmlWriter

Namespaces

namespace  GOAT
 This class is used for the iray class. This class is intended for internal use only. It defines a plane, defined by a central position and two directional vectors.
namespace  GOAT::XML

Macros

#define numXML_LS_TYPES   4
#define numXMLRootElements   3
#define XML_LS_TYPE_GAUSS   1
#define XML_LS_TYPE_GAUSS_MC   3
#define XML_LS_TYPE_PLANE   0
#define XML_LS_TYPE_PLANE_MC   2
#define XML_NONE   -1
#define XML_SCENE_DETECTORS   5
#define XML_SCENE_LIGHTSOURCES   3
#define XML_SCENE_NCELLS   2
#define XML_SCENE_NS   1
#define XML_SCENE_OBJECTS   4
#define XML_SCENE_R0   0

Functions

bool GOAT::XML::findExtension (std::string fname, std::string extension)
 check if the fname has a given extension This function checks if the fname ends with a given extension

Variables

const std::string GOAT::XML::LSTYPES [] = { "plane","gaussian","ring","tophat","line","point","plane_mc","gaussian_mc","ring_mc","line_mc","point_mc" }
const std::string GOAT::XML::LSXMLAttributes [] = { "type","size","wavelength","numrays","numraysRT"}
const std::string GOAT::XML::LSXMLTYPES [] = {"plane","gaussian","plane_mc","gaussian_mc"}
const std::string GOAT::XML::sceneXMLElements [] = { "r0","ns","CellsPerDir","lightsources","objects","detectors"}

Macro Definition Documentation

◆ numXML_LS_TYPES

#define numXML_LS_TYPES   4

Definition at line 32 of file xml.h.

◆ numXMLRootElements

#define numXMLRootElements   3

Definition at line 23 of file xml.h.

◆ XML_LS_TYPE_GAUSS

#define XML_LS_TYPE_GAUSS   1

Definition at line 34 of file xml.h.

◆ XML_LS_TYPE_GAUSS_MC

#define XML_LS_TYPE_GAUSS_MC   3

Definition at line 36 of file xml.h.

◆ XML_LS_TYPE_PLANE

#define XML_LS_TYPE_PLANE   0

Definition at line 33 of file xml.h.

◆ XML_LS_TYPE_PLANE_MC

#define XML_LS_TYPE_PLANE_MC   2

Definition at line 35 of file xml.h.

◆ XML_NONE

#define XML_NONE   -1

Definition at line 24 of file xml.h.

◆ XML_SCENE_DETECTORS

#define XML_SCENE_DETECTORS   5

Definition at line 30 of file xml.h.

◆ XML_SCENE_LIGHTSOURCES

#define XML_SCENE_LIGHTSOURCES   3

Definition at line 28 of file xml.h.

◆ XML_SCENE_NCELLS

#define XML_SCENE_NCELLS   2

Definition at line 27 of file xml.h.

◆ XML_SCENE_NS

#define XML_SCENE_NS   1

Definition at line 26 of file xml.h.

◆ XML_SCENE_OBJECTS

#define XML_SCENE_OBJECTS   4

Definition at line 29 of file xml.h.

◆ XML_SCENE_R0

#define XML_SCENE_R0   0

Definition at line 25 of file xml.h.