93 void openScript(std::string& _sScriptFileName);
102 {
return m_script.get() !=
nullptr;};
This class implements the basic input/ output file system and provides functionalities to work with f...
This class implements the function definition managing instance.
void setPredefinedFuncs(const std::string &sPredefined)
This member function updates the internal list of predefined functions. If the list is whitespace-sep...
This class represents a simple logging functionality, which might be extended in the future to handle...
std::unique_ptr< Includer > m_include
FunctionDefinitionManager _localDef
bool handleInstallInformation(std::string &sScriptCommand)
This member function handles the install information tags of the current installation section.
Script()
Default constructor.
void openScript(std::string &_sScriptFileName)
This member function opens the script with the passed file name.
bool writeWholeFile()
Writes the contents of a whole file to the target file, which has been specified by the XML-like tags...
void writeDocumentationArticle(std::string &sScriptCommand)
This member function writes the appended documentation article to the target file.
void writeProcedure()
Writes a procedure including the comments to a procedure file.
bool installProcedures() const
void evaluateInstallInformation(std::string &sInstallInfoString)
This member function evaluates the flags from the installation information string and also removes un...
unsigned int nCurrentPackage
std::string getNextScriptCommandFromInclude()
This member function returns the next valid line from the included script.
std::vector< std::string > vInstallPackages
void setInstallProcedures(bool _bInstall=true)
void writeLayout(std::string &sScriptCommand)
This member function writes the embedded window layout to the target file.
void close()
This member function closes an opened script.
std::unique_ptr< StyledTextFile > m_script
std::string sScriptFileName
std::string getScriptFileName() const
std::string getNextScriptCommandFromScript()
This member function returns the next valid line from the currently opened script.
std::string getNextScriptCommand()
This member function is the main interface to the internal managed script. It will always return the ...
bool startInstallation(std::string &sScriptCommand)
This member function starts the current installation section.
unsigned int getCurrentLine() const
void returnCommand()
This member function closes the script, if the code reached a "return" statement.
bool handleLocalDefinitions(std::string &sScriptCommand)
This private member function handles the definition and replacement of local functions.
std::string handleIncludeSyntax(std::string &sScriptCommand)
This member function handles the script include syntax ("@SCRIPT") and prepares the included file str...
void setPredefinedFuncs(const std::string &sPredefined)
This class handles the file-static constants, which are more or less macros similar to #define in C/C...