My Project
Public Member Functions | Static Public Member Functions | Properties | List of all members
NPLMono.NPLObjectProxy Class Reference

/** NPL object proxy. More...

Inheritance diagram for NPLMono.NPLObjectProxy:

Public Member Functions

 NPLObjectProxy (NPLObjectBase obj)
 
NPLObjectBase get ()
 
void MakeNil ()
 make the object invalid
 
NPLObjectType GetMyType ()
 
System.Collections.IEnumerator GetEnumerator ()
 
void Assign (NPLObjectProxy value)
 
void Assign (bool value)
 
void Assign (double value)
 
void Assign (int value)
 
void Assign (string value)
 
 NPLObjectProxy (NPLObjectBase obj)
 
NPLObjectBase get ()
 
void MakeNil ()
 make the object invalid
 
NPLObjectType GetMyType ()
 
System.Collections.IEnumerator GetEnumerator ()
 
void Assign (NPLObjectProxy value)
 
void Assign (bool value)
 
void Assign (double value)
 
void Assign (int value)
 
void Assign (string value)
 

Static Public Member Functions

static implicit operator bool (NPLObjectProxy arg1)
 
static implicit operator int (NPLObjectProxy arg1)
 
static implicit operator double (NPLObjectProxy arg1)
 
static implicit operator long (NPLObjectProxy arg1)
 
static implicit operator string (NPLObjectProxy arg1)
 
static implicit operator bool (NPLObjectProxy arg1)
 
static implicit operator int (NPLObjectProxy arg1)
 
static implicit operator double (NPLObjectProxy arg1)
 
static implicit operator long (NPLObjectProxy arg1)
 
static implicit operator string (NPLObjectProxy arg1)
 

Properties

NPLObjectProxy this[string sName] [get, set]
 this will create get field. More...
 
NPLObjectProxy this[int nIndex] [get, set]
 

Detailed Description

/** NPL object proxy.

This is both a smart pointer and accessors // Example 1: Create NPLTable and serialize to string NPLObjectProxy msg = new NPLObjectProxy(); msg["nid"].Assign(10); msg["name"].Assign("value"); msg["tab"]["name1"].Assign("value1"); StringBuilder output = new StringBuilder(); NPLHelper.NPLTableToString(null, msg, output);

// Example 2: serialized NPLTable from string.

NPLObjectProxy tabMsg = NPLHelper.StringToNPLTable("{nid=10, name=\"value", tab={name1="value1"}}"); ParaGlobal.applog(String.Format("Example 5: {0}==10, {1}==value, {2}==value1", (double)tabMsg["nid"], (string)tabMsg["name"], (string)(tabMsg["tab"]["name1"])));

Property Documentation

§ this[string sName]

NPLObjectProxy NPLMono.NPLObjectProxy.this[string sName]
getset

this will create get field.


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