OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Functions
ossimXmlDocument.cpp File Reference
#include <ossim/base/ossimXmlDocument.h>
#include <ossim/base/ossimXmlAttribute.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimRegExp.h>
#include <ossim/base/ossimNotifyContext.h>
#include <ossim/base/ossimKeywordNames.h>
#include <stack>
#include <iostream>
#include <fstream>
#include <ossim/base/ossimTrace.h>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const ossimXmlDocument &xml_doc)
 

Function Documentation

◆ operator<<()

ostream& operator<< ( ostream &  os,
const ossimXmlDocument xml_doc 
)

Definition at line 250 of file ossimXmlDocument.cpp.

References ossimRefPtr< T >::get(), ossimXmlDocument::theRootNode, ossimXmlDocument::theXmlHeader, and ossimRefPtr< T >::valid().

251 {
252  os << xml_doc.theXmlHeader << endl;
253  if (xml_doc.theRootNode.valid())
254  {
255  os << (xml_doc.theRootNode.get()) << endl;
256  }
257 // else
258 // os << "-- no root node assigned -- " << endl;
259 
260  return os;
261 }
bool valid() const
Definition: ossimRefPtr.h:75
ossimString theXmlHeader
ossimRefPtr< ossimXmlNode > theRootNode