class UIDocument
|
GUI-independent memory representation for an XML Overflow document
More... |
|
|
Public Methods
- UIDocument (string _name)
- virtual ~ UIDocument ()
- virtual void load ()
- virtual void loadXML (xmlNodePtr root)
- virtual void loadFromMemory (const char *mem, int size)
- void setModified ()
- void resetModified ()
- bool isModified ()
- UINetwork * addNetwork (string name, UINetwork::Type type)
- UINetwork * addNetwork (xmlNodePtr xmlNet)
- void removeNetwork (UINetwork *toRemove)
- bool isUntitled ()
- virtual const string & getName ()
- const string & getPath ()
- virtual void save ()
- char * saveToMemory (int &size)
- void addParameterText (string name, string value, string type)
- UINetwork * getNetworkNamed (const string &n)
- vector<ItemInfo *> getNetInputs (const string &netName)
- vector<ItemInfo *> getNetOutputs (const string &netName)
- vector<ItemInfo *> getNetParams (const string &netName)
- string getDescription (const string &type)
- void printOn (ostream &out=cout) const
- vector<UINetwork *> get_networks ()
- vector<DocParameterDataText *> get_textParams ()
- virtual UINetwork * newNetwork (const string &_name, UINetwork::Type type)
- virtual UINetwork * newNetwork (xmlNodePtr _net)
- Network * build (const string &_name, const ParameterSet ¶ms)
- set<string> genCode (ostream &out, const string &functName, bool localIncludes=false)
- virtual void run ()
- virtual void run (ParameterSet &p)
- virtual void setFullPath (const string &fullpath)
- void updateNetInfo (UINetwork *net)
- void updateAllNetworks ()
- virtual void updateAllSubnetTerminals (const string _nettype, const string _terminalname, UINetTerminal::NetTermType _terminaltype, bool _remove)
Public Static Methods
- static Network * buildExternal (const string &type, const string &_name, const ParameterSet ¶ms)
- static string findExternal (const string &filename, char *searchPath="VFLOW_PATH", bool include_home=true, bool fullPathOutput=true)
- static void genCodeExternal (const string &type, ostream &out, int &id, set<string> &nodeList)
Protected Methods
- virtual void error (char *err)
Protected Members
Detailed Description
GUI-independent memory representation for an XML Overflow document
[protected]
Pointers to all networks included (defined) in the document
[protected]
Flag is set to true anytime there's a change that hasn't been saved
[protected]
Info about all internal networks that can be included as nodes - I think (should be cleaned up)
[protected]
Document parameters (should be re-written)
[protected]
Input for the document if used as an external node
[protected]
Output for the document if used as an external node
[protected]
Parameters for the document if used as an external node
[protected]
File name (no path)
[protected]
Document path
[protected]
True if document has no real name yet
UIDocument (string _name)
|
Document constructor with name, DOES NOT load the document (document created as untitled)
[virtual]
Virtual destructor
[virtual]
Explicitly loads a document using the name specified at construction
void loadXML (xmlNodePtr root)
|
[virtual]
Loads the document from a parsed XML tree
void loadFromMemory (const char *mem, int size)
|
[virtual]
Loads the document from memory
Sets the 'modified' flag
Resets the 'modified' flag
Has the document been modified since last saved?
UINetwork * addNetwork (string name, UINetwork::Type type)
|
Add a network to the document
Add a network to the document from an XML node (used in load())
Remove and destroy network from the document
Is the document untitled?
const string & getName ()
|
[virtual]
Document name (no path
const string & getPath ()
|
Document path
[virtual]
Save the document to file specified in internal variables 'path' and 'docName'
char * saveToMemory (int &size)
|
Convert document to an XML string in memory
void addParameterText (string name, string value, string type)
|
UINetwork * getNetworkNamed (const string &n)
|
vector<ItemInfo *> getNetInputs (const string &netName)
|
vector<ItemInfo *> getNetOutputs (const string &netName)
|
vector<ItemInfo *> getNetParams (const string &netName)
|
string getDescription (const string &type)
|
void printOn (ostream &out=cout)
|
[const]
A UIDocument can print itself
Reimplemented from Object.
UINetwork * newNetwork (const string &_name, UINetwork::Type type)
|
[virtual]
[virtual]
set<string> genCode (ostream &out, const string &functName, bool localIncludes=false)
|
Generate C++ code for building the document, instead of using XML
[static]
[virtual]
[virtual]
void setFullPath (const string &fullpath)
|
[virtual]
void updateAllNetworks ()
|
string findExternal (const string &filename, char *searchPath="VFLOW_PATH", bool include_home=true, bool fullPathOutput=true)
|
[static]
void genCodeExternal (const string &type, ostream &out, int &id, set<string> &nodeList)
|
[static]
void updateAllSubnetTerminals (const string _nettype, const string _terminalname, UINetTerminal::NetTermType _terminaltype, bool _remove)
|
[virtual]
[protected virtual]
- Author: : Jean-Marc Valin
- Generated: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:36 2002, using kdoc 2.0a40.