OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimXmlAttribute.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2001 ImageLinks Inc. All rights reserved.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: Oscar Kramer (ossim port by D. Burken)
7 //
8 // Description:
9 //
10 // Contains declaration of class ossimAttribute.
11 //
12 //*****************************************************************************
13 // $Id: ossimXmlAttribute.h 12521 2008-02-28 20:09:25Z gpotts $
14 #ifndef ossimXmlAttribute_HEADER
15 #define ossimXmlAttribute_HEADER
16 
18 #include <ossim/base/ossimString.h>
19 #include <ossim/base/ossimObject.h>
20 
23 {
24 public:
25  ossimXmlAttribute(ossimString& spec); // attribute removed from spec string
28  ossimXmlAttribute(const ossimString& name,
29  const ossimString& value);
30  virtual ossimObject* dup() const
31  {
32  return new ossimXmlAttribute(*this);
33  }
35 
36  bool read(std::istream& in);
37  const ossimString& getName() const;
38  const ossimString& getValue() const;
39  void setNameValue(const ossimString& name,
40  const ossimString& value);
41  void setName(const ossimString& name);
42  void setValue(const ossimString& value);
43 
45  std::ostream& os, const ossimXmlAttribute* xml_attr);
46 
47 protected:
50 
51  bool readName(std::istream& in);
52  bool readValue(std::istream& in);
54 };
55 
56 #endif /* #ifndef ossimXmlAttribute_HEADER */
#define OSSIMDLLEXPORT
#define TYPE_DATA
Definition: ossimRtti.h:339
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
friend OSSIMDLLEXPORT std::ostream & operator<<(std::ostream &out, const ossimErrorStatusInterface &obj)
virtual ossimObject * dup() const
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23