5 #include <rdet/RStationListXMLManager.h>
6 #include <utl/ErrorLogger.h>
7 #include <utl/Reader.h>
8 #include <rdet/RManagerRegister.h>
27 if (cB.GetName() ==
"station") {
31 station.
fId = FindComponent<int>(
"id", cB.GetAttributes());
34 cB.GetChild(
"northing").GetData(station.
fNorthing);
35 cB.GetChild(
"easting").GetData(station.
fEasting);
36 cB.GetChild(
"altitude").GetData(station.
fAltitude);
37 station.
fName = cB.GetChild(
"name").GetDataString();
40 cB.GetChild(
"inGrid").GetData(station.
fInGrid);
41 cB.GetChild(
"ellipsoid").GetData(station.
fEllipsoid);
42 cB.GetChild(
"zone").GetData(station.
fZone);
43 cB.GetChild(
"band").GetData(station.
fBand);
44 cB.GetChild(
"nChannels").GetData(station.
fNChannels);
49 fStationManager.ConditionalAddStationData(station);
53 err <<
"multiple instances of station id " << station.
fId
54 <<
"found in XML configuration";
63 RStationListXMLManager::GetListOfChannelIds(std::vector<int>& resultData,
69 int firstChannelId = 0;
70 int lastChannelId = 0;
71 if ((fStationManager.GetData(firstChannelId,
"firstChannelId", componentIndex) == eFound) &&
72 (fStationManager.GetData(lastChannelId,
"lastChannelId", componentIndex) == eFound)) {
73 for (
int i = firstChannelId; i <= lastChannelId; ++i) {
std::string fDecommissionTime
void Init()
Initialise the registry.
Exception for errors encountered when parsing XML.
Branch GetNextSibling() const
Get next sibling of this branch.
#define REGISTER_R_MANAGER(_name_, _Type_)
Class representing a document branch.
std::map< std::string, std::string > IndexMap
Branch GetFirstChild() const
Get first child of this Branch.
Manager for Radio description in XML station lists.
std::string fCommissionTime
#define ERROR(message)
Macro for logging error messages.
Status
Specifies success or (eventually) various possible failure modes.