78 std::ifstream fs(
_source, std::ios_base::in );
86 bool not_found =
true;
88 while ( not_found && getline( fs, line ) ) {
90 for (
unsigned int i = 0; i < line.size(); ++i ) {
93 if ( line[i] ==
'\r' || line[i] ==
'\n' || line[i] ==
' ' ) {
99 if ( line[i] ==
'<' ) {
119 if (
ConfigurationPtr sampler_conf = parent_conf->getSubsection(
"Sampler",
false ) ) {
121 parent_conf = sampler_conf;
127 presences->setConfiguration( presence_conf );
137 absences->setConfiguration( absence_conf );
LstOccurrences _presences
static ConfigurationPtr readXml(char const *filename)
static OccurrencesReader * CreateOccurrencesReaderCallback(const char *source, const char *coordSystem)
static Log * instance()
Returns the instance pointer, creating the object on the first call.
~SerializedXmlOccurrences()
SerializedXmlOccurrences(const char *source, const char *coordSystem)
void info(const char *format,...)
'Info' level.