osgEarth 2.1.1
Public Types | Public Member Functions

osgEarth::Json::ValueAllocator Class Reference

Allocator to customize member name and string value memory management done by Value. More...

Inheritance diagram for osgEarth::Json::ValueAllocator:

List of all members.

Public Types

enum  { unknown = (unsigned)-1 }

Public Member Functions

virtual ~ValueAllocator ()
virtual char * makeMemberName (const char *memberName)=0
virtual void releaseMemberName (char *memberName)=0
virtual char * duplicateStringValue (const char *value, unsigned int length=unknown)=0
virtual void releaseStringValue (char *value)=0

Detailed Description

Allocator to customize member name and string value memory management done by Value.

Definition at line 579 of file JsonUtils.


Member Enumeration Documentation

anonymous enum
Enumerator:
unknown 

Definition at line 582 of file JsonUtils.

{ unknown = (unsigned)-1 };

Constructor & Destructor Documentation

ValueAllocator::~ValueAllocator ( ) [virtual]

Definition at line 52 of file JsonUtils.cpp.

{
}

Member Function Documentation

virtual char* osgEarth::Json::ValueAllocator::duplicateStringValue ( const char *  value,
unsigned int  length = unknown 
) [pure virtual]

Implemented in osgEarth::Json::DefaultValueAllocator.

Here is the caller graph for this function:

virtual char* osgEarth::Json::ValueAllocator::makeMemberName ( const char *  memberName) [pure virtual]
virtual void osgEarth::Json::ValueAllocator::releaseMemberName ( char *  memberName) [pure virtual]

Implemented in osgEarth::Json::DefaultValueAllocator.

Here is the caller graph for this function:

virtual void osgEarth::Json::ValueAllocator::releaseStringValue ( char *  value) [pure virtual]

Implemented in osgEarth::Json::DefaultValueAllocator.

Here is the caller graph for this function:


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