OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimPluginCommon.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: David Burken
8 //
9 // Description: Common code for this plugin.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimPluginCommon_HEADER
15 #define ossimPluginCommon_HEADER 1
16 
17 #include <string>
18 #include <vector>
19 #include <ossim/base/ossimRefPtr.h>
20 
21 class ossimString;
22 class ossimXmlDocument;
23 class ossimXmlNode;
24 
25 namespace ossimplugins
26 {
27 
28 
29 class CivilDateTime;
30 
31 
32 namespace ossim
33 {
45  bool iso8601TimeStringToCivilDate(const std::string& dataString,
46  CivilDateTime& outputDate);
47 
58  bool getPath(const ossimString& path,
59  const ossimXmlDocument* xdoc,
60  ossimString& s);
61 
69  bool getPath(const ossimString& path,
70  const ossimXmlDocument* xdoc,
71  std::vector<ossimString>& v);
72 
85  bool findFirstNode(const ossimString& path,
87  ossimString& s);
88 
89 } // matches: namespace ossim
90 }
91 
92 #endif /* matches: #ifndef ossimPluginCommon_HEADER */
This class represents a date and time in the civil format.
Definition: CivilDateTime.h:30
This code was derived from https://gist.github.com/mshockwave.
Definition: Barrier.h:8
bool iso8601TimeStringToCivilDate(const std::string &dataString, CivilDateTime &outputDate)
Converts date string from ISO 8601 format to CivilDateTime.
bool findFirstNode(const ossimString &path, ossimRefPtr< ossimXmlNode > node, ossimString &s)
Finds from node with path from node and initializes string.
bool getPath(const ossimString &path, const ossimXmlDocument *xdoc, ossimString &s)
Gets path from doc and initializes string.