OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimTextProperty.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 //
7 //*************************************************************************
8 // $Id: ossimTextProperty.cpp 9963 2006-11-28 21:11:01Z gpotts $
10 
11 RTTI_DEF1(ossimTextProperty, "ossimTextProperty", ossimProperty);
12 
14  const ossimString& value,
15  bool multiLineFlag)
16  :ossimProperty(name),
17  theValue(value),
18  theMultiLineFlag(multiLineFlag)
19 {
20 }
21 
23  :ossimProperty(rhs),
24  theValue(rhs.theValue),
25  theMultiLineFlag(rhs.theMultiLineFlag)
26 {
27 }
28 
30 {
31  return new ossimTextProperty(*this);
32 }
33 
35 {
36  return theMultiLineFlag;
37 }
38 
40 {
41  theMultiLineFlag = flag;
42 }
43 
45 {
46  theValue = value;
47 
48  return true;
49 }
50 
52 {
53  valueResult = theValue;
54 }
55 
57 {
58  theValue = rhs.valueToString();
59 
60  return *this;
61 }
62 
virtual void valueToString(ossimString &valueResult) const =0
virtual const ossimProperty & assign(const ossimProperty &rhs)
virtual ossimObject * dup() const
virtual ossimString valueToString() const
RTTI_DEF1(ossimTextProperty, "ossimTextProperty", ossimProperty)
virtual bool setValue(const ossimString &value)
ossimTextProperty(const ossimString &name=ossimString(""), const ossimString &value=ossimString(""), bool isMultiLine=false)
void setMultiLineFlag(bool flag)
bool isMulitLine() const