1 #if !defined(H_LISPSTRING)
8 class String
: public Obj
12 typedef String
* StringPtr
;
13 typedef String
& StringRef
;
18 String( const String
& other
)
21 value_
= other
.value_
;
24 virtual eObjectType
getObjectType() const
29 virtual String
* create(void) const
31 StringPtr result
= new String();
35 virtual String
* clone() const
37 StringPtr result
= new String(*this);
40 void print(std::ostream
& out
) const
42 out
<< "\"" << value_
<< "\"";
50 void value(StringValue value
)
55 bool operator==(const Obj
* other
)
58 if (other
->getObjectType() == eStringObj
)
59 result
= ( value_
== dynamic_cast<const String
*>(other
)->value_
);