OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimWmsStyle Class Reference

#include <ossimWms.h>

Inheritance diagram for ossimWmsStyle:
ossimReferenced

Public Member Functions

 ossimWmsStyle ()
 
virtual bool read (ossimRefPtr< ossimXmlNode > node)
 
void clearFields ()
 
const ossimStringgetName () const
 
const ossimStringgetTitle () const
 
const ossimStringgetAbstract () const
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 

Protected Attributes

ossimString theName
 
ossimString theTitle
 
ossimString theAbstract
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 212 of file ossimWms.h.

Constructor & Destructor Documentation

◆ ossimWmsStyle()

ossimWmsStyle::ossimWmsStyle ( )
inline

Definition at line 215 of file ossimWms.h.

216  {}

Member Function Documentation

◆ clearFields()

void ossimWmsStyle::clearFields ( )
inline

Definition at line 218 of file ossimWms.h.

219  {
220  theName = "";
221  theTitle = "";
222  theAbstract = "";
223  }
ossimString theTitle
Definition: ossimWms.h:241
ossimString theName
Definition: ossimWms.h:240
ossimString theAbstract
Definition: ossimWms.h:242

◆ getAbstract()

const ossimString& ossimWmsStyle::getAbstract ( ) const
inline

Definition at line 235 of file ossimWms.h.

236  {
237  return theAbstract;
238  }
ossimString theAbstract
Definition: ossimWms.h:242

◆ getName()

const ossimString& ossimWmsStyle::getName ( ) const
inline

Definition at line 225 of file ossimWms.h.

226  {
227  return theName;
228  }
ossimString theName
Definition: ossimWms.h:240

◆ getTitle()

const ossimString& ossimWmsStyle::getTitle ( ) const
inline

Definition at line 230 of file ossimWms.h.

231  {
232  return theTitle;
233  }
ossimString theTitle
Definition: ossimWms.h:241

◆ read()

bool ossimWmsStyle::read ( ossimRefPtr< ossimXmlNode node)
virtual

Definition at line 159 of file ossimWms.cpp.

References ossimXmlNode::getChildNodes(), theAbstract, theName, and theTitle.

Referenced by ossimWmsLayer::read().

160 {
161  const vector<ossimRefPtr<ossimXmlNode> >& childNodes = node->getChildNodes();
162  ossim_uint32 idx = 0;
163  for(idx = 0; idx < childNodes.size();++idx)
164  {
165  if(childNodes[idx]->getTag() == "Name")
166  {
167  theName = childNodes[idx]->getText();
168  }
169  else if(childNodes[idx]->getTag() == "Title")
170  {
171  theTitle = childNodes[idx]->getText();
172  }
173  else if(childNodes[idx]->getTag() == "Abstract")
174  {
175  theAbstract = childNodes[idx]->getText();
176  }
177  }
178 
179  return true;
180 }
const ossimXmlNode::ChildListType & getChildNodes() const
unsigned int ossim_uint32
ossimString theTitle
Definition: ossimWms.h:241
ossimString theName
Definition: ossimWms.h:240
ossimString theAbstract
Definition: ossimWms.h:242

Member Data Documentation

◆ theAbstract

ossimString ossimWmsStyle::theAbstract
protected

Definition at line 242 of file ossimWms.h.

Referenced by read().

◆ theName

ossimString ossimWmsStyle::theName
protected

Definition at line 240 of file ossimWms.h.

Referenced by read().

◆ theTitle

ossimString ossimWmsStyle::theTitle
protected

Definition at line 241 of file ossimWms.h.

Referenced by read().


The documentation for this class was generated from the following files: