vsTASKER 7 User Manual
×
Menu
Index

Source Code

 
As vsTASKER is a code generating tool, it allows the user to add its own.
To mimic the C++ class definitions, source code is organized with panels where a class definition is split.
 
  
 
Put in this panel all #include (third party API), #define and typedef needed for the current Class.
Definition content is put without preprocessing in the beginning of the final header file, outside of any class definition.
  
 
Put in this panel all methods and data you want to add in the current class (Scenario and Entity). For Global, use this section to list all static or global functions prototypes. 
 
For Scenario and Entity, the Declaration part is added, without preprocessing, into the Entity:: or Scenario:: class definition in the header file. For Global, the Declaration content is put as is in the header file. 
No constructor nor destructor should be added here. Use instead the Initialization part.
 
 
Put in this panel all inline methods of the current Class (Scenario and Entity). There is a preprocessing of the Inlines content, so do not forget the keyword inline and the word Scenario:: or Entity:: before any method name.
 
For Global, specify here all inline methods of your user-defined classes (if any). Do not forget the inline keyword and the name of the class these methods belong to. For Global, the Inlines content is not preprocessed.
  
 
This part is called automatically at initialization time (INIT), when simulation is run for the first time, every time the instance is reset (at restart) and finally at destruction (CLEAN) when the simulation is terminated. Stopping the simulation does not call CLEAN,  only exiting the simulation calls CLEAN
Refer to the Developer Guide for more details on system phases/events.
 
 
Put in this panel all methods of the current Class (Scenario and Entity). There is a preprocessing of the Methods content, so do not forget the word Scenario:: or Entity:: before any method name.
 
For Global, specify here all methods of your user-defined classes (if any). Do not forget the name of the class these methods belong to. You must also put into this panel all global or static functions you have defined earlier. You can also put all the #define and #include needed for the local global code only. For Global, the Methods content is not preprocessed.