#include <Catalog.h>
◆ Catalog()
unsigned int * _pFragmentIndexes
Definition: Catalog.h:11
◆ ~Catalog()
◆ findConfig()
| int Catalog::findConfig |
( |
std::string |
configName | ) |
|
24 std::vector<std::string> tokens;
25 const std::string delimiters=
" ";
26 unsigned int index = -1;
33 std::string::size_type lastPos =
_setup.
configs.at(i).name.find_first_not_of(delimiters, 0);
35 std::string::size_type pos =
_setup.
configs.at(i).name.find_first_of(delimiters, lastPos);
37 while (std::string::npos != pos || std::string::npos != lastPos)
40 tokens.push_back(
_setup.
configs.at(i).name.substr(lastPos, pos - lastPos));
42 lastPos =
_setup.
configs.at(i).name.find_first_not_of(delimiters, pos);
44 pos =
_setup.
configs.at(i).name.find_first_of(delimiters, lastPos);
47 for (
int j = 0; j < static_cast<int>(tokens.size()); j++)
50 if (tokens.at(j) == configName)
SetupStringRepresentation _setup
Definition: Catalog.h:14
unsigned int length
Definition: Struct.h:65
std::vector< ConfigStringRepresentation > configs
Definition: Struct.h:64
◆ getConfigValue()
| std::string Catalog::getConfigValue |
( |
int |
index, |
|
|
std::string |
configName |
|
) |
| |
70 std::vector<std::string> tokens;
71 const std::string delimiters=
" ";
72 unsigned int indexConf = -1;
74 for (
unsigned int i = 0; i <
_setup.
configs.at(index).length; i++)
80 std::string::size_type lastPos =
_setup.
configs.at(index).keys.at(i).name.find_first_not_of(delimiters, 0);
82 std::string::size_type pos =
_setup.
configs.at(index).keys.at(i).name.find_first_of(delimiters, lastPos);
84 while (std::string::npos != pos || std::string::npos != lastPos)
87 tokens.push_back(
_setup.
configs.at(index).keys.at(i).name.substr(lastPos, pos - lastPos));
89 lastPos =
_setup.
configs.at(index).keys.at(i).name.find_first_not_of(delimiters, pos);
91 pos =
_setup.
configs.at(index).keys.at(i).name.find_first_of(delimiters, lastPos);
94 for (
int j = 0; j < static_cast<int>(tokens.size()); j++)
96 if (tokens.at(j) == value)
108 std::string retValue =
_setup.
configs.at(index).keys.at(indexConf).value;
◆ getFragmentIndexes()
| unsigned int Catalog::getFragmentIndexes |
( |
unsigned int |
y, |
|
|
unsigned int |
x |
|
) |
| |
|
inline |
unsigned int _xViews
Definition: Catalog.h:10
◆ getHeaderInfo()
HeaderInfo _headerInfo
Definition: Catalog.h:13
◆ getNfragments()
| unsigned int Catalog::getNfragments |
( |
| ) |
|
|
inline |
Area _area
Definition: Catalog.h:9
unsigned int nFragments
Definition: Struct.h:44
◆ getSetup()
◆ getXmax()
| double Catalog::getXmax |
( |
| ) |
|
|
inline |
double xMax
Definition: Struct.h:42
◆ getXmin()
| double Catalog::getXmin |
( |
| ) |
|
|
inline |
double xMin
Definition: Struct.h:42
◆ getXstep()
| double Catalog::getXstep |
( |
| ) |
|
|
inline |
double xStep
Definition: Struct.h:43
◆ getXviews()
| unsigned int Catalog::getXviews |
( |
| ) |
|
|
inline |
◆ getYmax()
| double Catalog::getYmax |
( |
| ) |
|
|
inline |
double yMax
Definition: Struct.h:42
◆ getYmin()
| double Catalog::getYmin |
( |
| ) |
|
|
inline |
double yMin
Definition: Struct.h:42
◆ getYstep()
| double Catalog::getYstep |
( |
| ) |
|
|
inline |
double yStep
Definition: Struct.h:43
◆ getYviews()
| unsigned int Catalog::getYviews |
( |
| ) |
|
|
inline |
unsigned int _yViews
Definition: Catalog.h:10
◆ initFragmentIndexes()
| void Catalog::initFragmentIndexes |
( |
unsigned int |
yviews, |
|
|
unsigned int |
xviews |
|
) |
| |
|
inline |
◆ setFragmentIndexes()
| bool Catalog::setFragmentIndexes |
( |
unsigned int |
y, |
|
|
unsigned int |
x, |
|
|
unsigned int |
value |
|
) |
| |
◆ setHeaderInfo()
◆ setNfragments()
| void Catalog::setNfragments |
( |
unsigned int |
n | ) |
|
|
inline |
◆ setXmax()
| void Catalog::setXmax |
( |
double |
xMax | ) |
|
|
inline |
◆ setXmin()
| void Catalog::setXmin |
( |
double |
xMin | ) |
|
|
inline |
◆ setXstep()
| void Catalog::setXstep |
( |
double |
xStep | ) |
|
|
inline |
◆ setXviews()
| void Catalog::setXviews |
( |
unsigned int |
x | ) |
|
|
inline |
◆ setYmax()
| void Catalog::setYmax |
( |
double |
yMax | ) |
|
|
inline |
◆ setYmin()
| void Catalog::setYmin |
( |
double |
yMin | ) |
|
|
inline |
◆ setYstep()
| void Catalog::setYstep |
( |
double |
yStep | ) |
|
|
inline |
◆ setYviews()
| void Catalog::setYviews |
( |
unsigned int |
y | ) |
|
|
inline |
◆ _area
◆ _headerInfo
◆ _nConfigs
| unsigned int Catalog::_nConfigs |
|
private |
◆ _pFragmentIndexes
| unsigned int* Catalog::_pFragmentIndexes |
|
private |
◆ _setup
◆ _xViews
| unsigned int Catalog::_xViews |
|
private |
◆ _yViews
| unsigned int Catalog::_yViews |
|
private |
◆ Reserved
| unsigned char Catalog::Reserved[256] |
|
private |
◆ setup
The documentation for this class was generated from the following files: