 | | Wide Studio Object Reference
| |
Class Name
WSCbaseList
Specification of methods
WSGIappObjectList method
- Form
- WSDbaseList* WSGIappObjectList()
- Function
- Returns the global instance of WSCbaseList
which is a singleton in an application.
- Description
-
- Parameters
- Nothing.
- Return value
- Returns the global instance
- Notice
- This is a global function(not a method of the class).
Do not delete the return value.
- Samples
-
//update the instances need updating.
WSGIappObjectList()->execUpdate();
getInstance method
- Form
- WSCbase* getInstance(char* cname,char* iname)
- Function
- Returns the instance by a specified class name
and instance name.
- Description
- If "WSCbase" is specified as the class name,seeks all by the specified instance name.
- Parameters
-
(in)char* cname | class name |
(in)char* iname | instance name |
- Return value
- Returns the instance
- Notice
- If the specified the class name is not "WSCbase",
it seeks only the instance which is create as that class.
Accordingly for example,a instance which is create as WSCvbtn
(This class inherites WSCvlabel) is not hit as WSCvlabel.
- Samples
-
//Get an instance which class is WSCvlabel and which name is newvlab_000.
WSCbase* inst = WSGIappObjectList()->getInstance("WSCvlabel","newvlab_000");
getRemoteInstance method
- Form
- WSCRbase* getRemoteInstance(char* iname)
- Function
- Returns the remote instance by a specified class name
and instance name.
- Description
- Returns the pointer(reference) of
the remote instances of which "Export" property is True
by a specified class name and instance name.
- Parameters
-
(in)char* iname | instance name |
- Return value
- Returns the remote instance
- Notice
- Needs that wsagent and the process which contains
the remote instance is running.
- Samples
-
// get the remote instance which name is newvlab_000.
WSCRbase* remote_inst = WSGIappObjectList()->getRemoteInstance("newvlab_000");
// access the remote instance...
if (remote_inst != NULL){
remote_inst->setProperty(WSNlabelString,"Hello!");
}
existInstance method
- Form
- WSCbool existInstance(WSCbase* instance)
- Function
- Examines whether the specified instance is valid or deleted.
- Description
-
- Parameters
-
(in)WSbase* instance | the instance |
- Return value
- Returns True if it is valid; returns False if it is invalid.
- Notice
-
- Samples
-
void sample(){
WSCbase* inst = ...//some instance...
WSCbool exit = WSGIappObjectList()->existInstace(inst);
if (exit == False){
//An invalid instance...
}else{
//A regular instance...
}
}
execUpdate method
- Form
- void execUpdate()
- Function
- Updates the instances need updating.
- Description
- Executes update() methods of the instances need updating.
- Parameters
- Nothing.
- Return value
- Nothing.
- Notice
-
- Samples
- Refer to WSGIappObjectList().
Document Release 3.0 For Use with Wide Studio Release 3.0, Summer 2002 Wide Stuido Home | Up to Copyright(C) T. Hirabayashi, 1999-2002 | | Last modified: July 15, 2002 | |