Module which takes care of serialization and exporting of WidgetInfo objects. More...
#include <storemdl.h>
The StorageModule takes care of all serialization tasks in Ebuilder. It supports three public members: read, write and export. The write and export members take a WidgetInfo object as argument and write the content to disk in either a proprietary format or C++ code. The read member can reconstruct a WidgetInfo object from a file previously written to disk by the write member function.
This class uses a lexical analyser generated with flex to analyse the input.
Create a new StorageModule.
Export the information contained in the WidgetInfo structure to C++. Constructs a header file called hname and an implementation file called iname in the directory dir.
Read a widget definition from file fname. This member function makes use of an external lexical analyser, generated with flex.
Write a widget definition to file fname.
See also: StorageModule::writeWidgetProps StorageModule::writeMemberFuncs StorageModule::writeMemberVars StorageModule::writeIncludes
[private]
Add a widget of type type to the widget pointed to by target. Give it name name. Used by StorageModule::read.
[private]
Set the property of the widget target named key to val. This member checks if the properties are valid. Used by StorageModule::read.
Return values: 0 if any error occurs 1 if all is well
[private]
Set property key of MemberFunction target to val. This member checks if the key is correct. Used by StorageModule::read.
Return values:
0 on any error 1 if all is well
[private]
Set property key of MemberVariable target to val. This member checks if the key is correct. Used by StorageModule::read.
Return values:
0 on any error 1 if all is well
[private]
Set property key of IncludeFile target to val. This member checks if the key is correct. Used by StorageModule::read.
Return values:
0 on any error 1 if all is well
[private]
This member function is used to push widgets on the widget stack. This is neccesary for correct processing of recursive widget definitions.
[private]
This member function is used to pop widgets off the widget stack. This is neccesary for correct processing of recursive widget definitions.
[private]
Write the properties of the widget target to output file stream fout. This member calls itself recursively to write the properties of all subwidgets of target to disk. Used by StorageModule::write.
[private]
Writes all MemberFunction-s found in list to output file stream fout. Used by StorageModule::write.
[private]
Writes all MemberVariables-s found in list to output file stream fout. Used by StorageModule::write.
[private]
Writes all IncludeFile-s found in list to output file stream fout. Used by StorageModule::write.
[private]
Exports the properties of the widget /a target to the file stream /a fout. All properties are checked to see if they correspond to the default values for the current application style. If a match is found, the property is not exported.
[private]
Checks the property property of target agains the default value.
Return values: 0 if the properties are the same 1 if the properties differ
[private]
Variable for lexical analyser holding widget type
[private]
Variable for lexical analyser holding widget name
[private]
Variable for lexical analyser holding property name
[private]
Variable for lexical analyser holding property value
[private]
Variable for lexical analyser holding the current line number
[private]
Variable for lexical analyser holding the current recursion depth
[private]
Variable for lexical analyser holding the current stack depth
[private]
Variable for lexical analyser forming a widget stack for recursion