| 1 |
NAME SoSFString SoSString "" { |
| 2 |
field containing a string |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE fields/SoSFString.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
A field containing an ASCII string (sequence of characters). Inventor |
| 9 |
does not support non-ASCII strings. |
| 10 |
\p |
| 11 |
\cSoSFStrings\. are written to file as a sequence of ASCII characters |
| 12 |
in double quotes (optional if the string doesn't contain any |
| 13 |
whitespace). Any characters (including newlines) may appear within |
| 14 |
the quotes. To include a double quote character within the string, |
| 15 |
precede it with a backslash. For example: |
| 16 |
\b |
| 17 |
Testing |
| 18 |
"One, Two, Three" |
| 19 |
"He said, \\"Immel did it!\\"" |
| 20 |
\. |
| 21 |
are all valid strings. |
| 22 |
} |
| 23 |
METHOD SetStr setValue(const char *string) { |
| 24 |
Convenience method to set the field's value given a character array. |
| 25 |
} |
| 26 |
ALSO { SbString, SoField, SoSField, SoMFString } |
| 27 |
METHOD "" static SoType getClassTypeId() {} |
| 28 |
METHOD "" virtual void getTypeId() const { |
| 29 |
Returns the type for this class or a particular object of this class. |
| 30 |
} |
| 31 |
METHOD Get const SbString & getValue() const { |
| 32 |
Returns this field's value. |
| 33 |
} |
| 34 |
METHOD " " const SbString & operator =(const SbString & newValue) {} |
| 35 |
METHOD Set void setValue(const SbString & newValue) { |
| 36 |
Sets this field to \anewValue\.. |
| 37 |
} |
| 38 |
METHOD IsEq int operator ==(const SoSFString &f) const {} |
| 39 |
METHOD IsNEq int operator !=(const SoSFString &f) const { |
| 40 |
Returns TRUE if \af\. is of the same type and has the same value as this |
| 41 |
field. |
| 42 |
} |