Open Inventor Reference
SoSFString Class Reference

Field containing a string. More...

#include <Inventor/fields/SoSFString.h>

Inheritance diagram for SoSFString:
SoSField SoField

List of all members.

Public Member Functions

void setValue (const char *string)
 Some additional convenience functions:

Static Public Member Functions

static void initClass ()

Detailed Description

A field containing an ASCII string (sequence of characters). Inventor does not support non-ASCII strings.

SoSFStrings are written to file as a sequence of ASCII characters in double quotes (optional if the string doesn't contain any whitespace). Any characters (including newlines) may appear within the quotes. To include a double quote character within the string, precede it with a backslash. For example:

Testing
"One, Two, Three"
"He said, \"Immel did it!\""

are all valid strings.

See Also
SbString, SoField, SoSField, SoMFString

Definition at line 88 of file SoSFString.h.


Member Function Documentation

static void SoSFString::initClass ( ) [static]

Reimplemented from SoSField.

void SoSFString::setValue ( const char *  string)

Set value from character string


The documentation for this class was generated from the following file: