osgEarth 2.1.1
Public Member Functions | Public Attributes

osgEarth::Json::Value::CommentInfo Struct Reference

List of all members.

Public Member Functions

 CommentInfo ()
 ~CommentInfo ()
void setComment (const char *text)

Public Attributes

char * comment_

Detailed Description

Definition at line 462 of file JsonUtils.


Constructor & Destructor Documentation

Value::CommentInfo::CommentInfo ( )

Definition at line 399 of file JsonUtils.cpp.

   : comment_( 0 )
{
}
Value::CommentInfo::~CommentInfo ( )

Definition at line 404 of file JsonUtils.cpp.

Here is the call graph for this function:


Member Function Documentation

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:


Member Data Documentation

Definition at line 469 of file JsonUtils.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines