| 
    osgEarth 2.1.1 
   | 
 
Public Member Functions | |
| CommentInfo () | |
| ~CommentInfo () | |
| void | setComment (const char *text) | 
Public Attributes | |
| char * | comment_ | 
| Value::CommentInfo::CommentInfo | ( | ) | 
Definition at line 399 of file JsonUtils.cpp.
: comment_( 0 ) { }
| Value::CommentInfo::~CommentInfo | ( | ) | 
Definition at line 404 of file JsonUtils.cpp.
{
   if ( comment_ )
      valueAllocator()->releaseStringValue( comment_ );
}
 Here is the call graph for this function:| void Value::CommentInfo::setComment | ( | const char * | text | ) | 
Definition at line 412 of file JsonUtils.cpp.
{
   if ( comment_ )
      valueAllocator()->releaseStringValue( comment_ );
   JSON_ASSERT( text );
   JSON_ASSERT_MESSAGE( text[0]=='\0' || text[0]=='/', "Comments must start with /");
   // It seems that /**/ style comments are acceptable as well.
   comment_ = valueAllocator()->duplicateStringValue( text );
}
 Here is the call graph for this function:
 Here is the caller graph for this function:
 1.7.3