IMS2
Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
|
Holds static data to define a communications antena, satelite dish and similar. More...
Public Member Functions | |
bool | HasGui () |
This function serves to check whether a module function has a GUI before creating it. More... | |
Public Member Functions inherited from IMS_ModuleFunctionData_Base | |
virtual bool | LoadFromFile (string configfile, IMSFILE cfg) |
Loads the data from config file. More... | |
FUNCTIONTYPE | GetType () |
string | GetName () |
Private Member Functions | |
bool | processConfigLine (vector< string > &tokens) |
Receives all lines of the config file that concern this ModuleFunction one by one. More... | |
bool | validateData (string configfile) |
Validates the data for completeness after loading. More... | |
Private Attributes | |
string | trackinganimname = "" |
string | deployanimname = "" |
string | searchanimname = "" |
Friends | |
class | IMS_ModuleFunction_Comm |
Additional Inherited Members | |
Protected Attributes inherited from IMS_ModuleFunctionData_Base | |
FUNCTIONTYPE | type |
Stores the type of the ModuleFunction. | |
string | name = "" |
Stores the Name of the ModuleFunction. | |
Holds static data to define a communications antena, satelite dish and similar.
Note that the most difficult part of a config file for such a module will be defining the actual animations, but this is covered in the documentation for IMS_ModuleFunctionData_Animation
|
inlinevirtual |
This function serves to check whether a module function has a GUI before creating it.
Reimplemented from IMS_ModuleFunctionData_Base.
|
privatevirtual |
Receives all lines of the config file that concern this ModuleFunction one by one.
Overload this function to receive the relevant data of your module.
tokens | a vector of strings that contains the individual parts of the line, delimited by whitespace or '=' |
Implements IMS_ModuleFunctionData_Base.
|
privatevirtual |
Validates the data for completeness after loading.
Implement this function to validate your data at the end of the loading process. Check if everything's there that needs to be, and write log messages if it isn't.
configfile | The name of the configfile, so you can add it to your messages so config writers find their mistakes faster. |
Implements IMS_ModuleFunctionData_Base.