20#include "../ui/error.hpp"
21#include "../utils/tools.hpp"
32 delete (iter->second);
111 delete (iter->second);
119 iter->second = element;
This class contains the pre-parsed contents of a single procedure file.
std::map< std::string, ProcedureElement * > mLibraryEntries
StyledTextFile getFileContents(const std::string &sProcedureFileName)
Reads the contents of the passed file and returns it as a std::vector.
void updateLibrary()
Perform an update, e.g. if a procedure was deleted.
ProcedureElement * getProcedureContents(const std::string &sProcedureFileName)
Returns the ProcedureElement pointer to the desired procedure file. It also creates the element,...
ProcedureElement * constructProcedureElement(const std::string &sProcedureFileName)
Constructs a new ProcedureElement, if the file exists. Otherwise returns a nullptr.
~ProcedureLibrary()
Destructor avoiding memory leaks. Releases the memory allocated for each ProcedureElement.
This class represents a text file in memory (e.g. a code file). This class will try to lex the loaded...
int getLinesCount() const
Returns the number of lines in the current loaded file.
Common exception class for all exceptions thrown in NumeRe.
static size_t invalid_position
bool fileExists(const string &)
This function checks, whether the file with the passed file name exists.