OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
base
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
17
#include <
ossim/base/ossimErrorStatusInterface.h
>
18
#include <
ossim/base/ossimString.h
>
19
#include <
ossim/base/ossimObject.h
>
20
21
class
OSSIMDLLEXPORT
ossimXmlAttribute
:
public
ossimObject
,
22
public
ossimErrorStatusInterface
23
{
24
public
:
25
ossimXmlAttribute
(
ossimString
& spec);
// attribute removed from spec string
26
ossimXmlAttribute
();
27
ossimXmlAttribute
(
const
ossimXmlAttribute
& src);
28
ossimXmlAttribute
(
const
ossimString
& name,
29
const
ossimString
& value);
30
virtual
ossimObject
*
dup
()
const
31
{
32
return
new
ossimXmlAttribute
(*
this
);
33
}
34
~
ossimXmlAttribute
();
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
44
OSSIMDLLEXPORT
friend
std::ostream
&
operator<<
(
45
std::ostream
& os,
const
ossimXmlAttribute
* xml_attr);
46
47
protected
:
48
ossimString
theName
;
49
ossimString
theValue
;
50
51
bool
readName(
std::istream
& in);
52
bool
readValue(
std::istream
& in);
53
TYPE_DATA
54
};
55
56
#endif
/* #ifndef ossimXmlAttribute_HEADER */
ossimObject
Definition:
ossimObject.h:25
ossimXmlAttribute::theValue
ossimString theValue
Definition:
ossimXmlAttribute.h:49
OSSIMDLLEXPORT
#define OSSIMDLLEXPORT
Definition:
ossimConstants.h:71
ossimObject.h
ossimXmlAttribute::theName
ossimString theName
Definition:
ossimXmlAttribute.h:48
ossimErrorStatusInterface
Definition:
ossimErrorStatusInterface.h:29
TYPE_DATA
#define TYPE_DATA
Definition:
ossimRtti.h:339
ossimString.h
ossimErrorStatusInterface.h
ossim::istream
std::basic_istream< char > istream
Base class for char input streams.
Definition:
ossimIosFwd.h:20
ossimErrorStatusInterface::operator<<
friend OSSIMDLLEXPORT std::ostream & operator<<(std::ostream &out, const ossimErrorStatusInterface &obj)
Definition:
ossimErrorStatusInterface.cpp:67
ossimXmlAttribute::dup
virtual ossimObject * dup() const
Definition:
ossimXmlAttribute.h:30
ossimXmlAttribute
Definition:
ossimXmlAttribute.h:21
ossim::ostream
std::basic_ostream< char > ostream
Base class for char output streams.
Definition:
ossimIosFwd.h:23
ossimString
Definition:
ossimString.h:22
Generated on Fri Aug 3 2018 08:46:55 for OSSIM - Open Source Software Image Map by
1.8.14