24 static ossimTrace traceDebug(
"ossimPluginCommon:debug");
41 int second = otm.tm_hour * 3600 + otm.tm_min * 60 + otm.tm_sec;
62 std::vector<ossimRefPtr<ossimXmlNode> > xnodes;
64 if ( xnodes.size() == 1 )
66 if ( xnodes[0].valid() )
68 s = xnodes[0]->getText();
77 <<
"ossim::getPath ERROR:\n" 78 <<
"Node not found: " << path
83 else if ( xnodes.size() == 0 )
88 <<
"ossim::getPath ERROR:\n" 89 <<
"Node not found: " << path
99 <<
"ossim::getPath ERROR:\n" 100 <<
"Multiple nodes found: " << path
114 std::vector<ossimString>& v)
119 std::vector<ossimRefPtr<ossimXmlNode> > xnodes;
123 std::vector<ossimRefPtr<ossimXmlNode> >::const_iterator i =
125 while ( i != xnodes.end() )
127 v.push_back( (*i)->getText() );
137 <<
"ossim::getPath ERROR:\n" 138 <<
"Nodes not found: " << path
170 <<
"ossim::findFirstNode ERROR:\n" 171 <<
"Node empty: " << path
181 <<
"ossim::findFirstNode ERROR:\n" 182 <<
"Node not found: " << path
void clear()
Erases the entire container.
void set_month(int month)
This class represents a date and time in the civil format.
void set_second(int second)
bool iso8601TimeStringToCivilDate(const std::string &dataString, CivilDateTime &outputDate)
Converts date string from ISO 8601 format to CivilDateTime.
const ossimRefPtr< ossimXmlNode > & findFirstNode(const ossimString &rel_xpath) const
void set_decimal(double decimal)
std::string::size_type size() const
os2<< "> n<< " > nendobj n
double getFractionalSecond() const
bool findFirstNode(const ossimString &path, ossimRefPtr< ossimXmlNode > node, ossimString &s)
Finds from node with path from node and initializes string.
bool setIso8601(const std::string &timeString, bool shiftToGmtOffsetZero=false)
bool getPath(const ossimString &path, const ossimXmlDocument *xdoc, ossimString &s)
Gets path from doc and initializes string.
void findNodes(const ossimString &xpath, std::vector< ossimRefPtr< ossimXmlNode > > &nodelist) const
Appends any matching nodes to the list supplied (should be empty):
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)