osgEarth 2.1.1
Public Member Functions | Private Types | Private Attributes | Friends

osgEarth::Json::PathArgument Class Reference

Experimental and untested: represents an element of the "path" to access a node. More...

List of all members.

Public Member Functions

 PathArgument ()
 PathArgument (Value::UInt index)
 PathArgument (const char *key)
 PathArgument (const std::string &key)

Private Types

enum  Kind { kindNone = 0, kindIndex, kindKey }

Private Attributes

std::string key_
Value::UInt index_
Kind kind_

Friends

class Path

Detailed Description

Experimental and untested: represents an element of the "path" to access a node.

Definition at line 507 of file JsonUtils.


Member Enumeration Documentation

Enumerator:
kindNone 
kindIndex 
kindKey 

Definition at line 518 of file JsonUtils.


Constructor & Destructor Documentation

PathArgument::PathArgument ( )

Definition at line 1778 of file JsonUtils.cpp.

   : kind_( kindNone )
{
}
PathArgument::PathArgument ( Value::UInt  index)

Definition at line 1784 of file JsonUtils.cpp.

   : index_( index )
   , kind_( kindIndex )
{
}
PathArgument::PathArgument ( const char *  key)

Definition at line 1791 of file JsonUtils.cpp.

   : key_( key )
   , kind_( kindKey )
{
}
PathArgument::PathArgument ( const std::string &  key)

Definition at line 1798 of file JsonUtils.cpp.

   : key_( key.c_str() )
   , kind_( kindKey )
{
}

Friends And Related Function Documentation

friend class Path [friend]

Definition at line 510 of file JsonUtils.


Member Data Documentation

Definition at line 525 of file JsonUtils.

std::string osgEarth::Json::PathArgument::key_ [private]

Definition at line 524 of file JsonUtils.

Definition at line 526 of file JsonUtils.


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