newspeoplefor developersdocumentationdownloads

nObject Script Interface

nobject:

Subclasses:

C++ Class:

Info

nobject is the superclass of all higher level Nebula classes and defines this basic behavior and properties for all nobject derived classes:
  • runtime type information
  • object persistency
  • language independent scripting interface

Commands:


saveas

Command Input:
s (Name)
Command Output:
b (Success)
Command Description:
Save the object under a given name into a file.

clone

Command Input:
s (CloneName)
Command Output:
o (CloneHandle)
Command Description:
Creates a clone of this object.
  • If the object's class hierarchy doesn't contain nroot then 'CloneName' is ignored. Otherwise 'CloneName' is the name given to the new cloned object.
  • If the original object has child objects, they will be cloned as well.

getrefcount

Command Input:
v
Command Output:
i (Refcount)
Command Description:
Return current ref count of object.

getclass

Command Input:
v
Command Output:
s (Classname)
Command Description:
Return name of class which the object is an instance of.

getclasses

Command Input:
v
Command Output:
l (ClassnameList)
Command Description:
Return the list of classes which the object is an instance of.

isa

Command Input:
s (Classname)
Command Output:
b (Success)
Command Description:
Check whether the object is instantiated or derived from the class given by 'Classname'.

isinstanceof

Command Input:
s (Classname)
Command Output:
b (Success)
Command Description:
Check whether the object is an instance of the class given by 'Classname'.

getcmds

Command Input:
v
Command Output:
l (Commands)
Command Description:
Return a list of all script command prototypes the object accepts.

getinstancesize

Command Input:
v
Command Output:
i (InstanceSize)
Command Description:
Get byte size of this object. This may or may not accurate, depending on whether the object uses external allocated memory, and if the object's class takes this into account.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.