Source: data-flow/include/UINodeParameters.h
|
|
|
|
// Copyright (C) 2001 Jean-Marc Valin
#ifndef UINODEPARAMETERS_H
#define UINODEPARAMETERS_H
using namespace std;
//#include <gnome.h>
#include <string>
#include <vector>
#include <tree.h>
class UINode;
class ParameterSet;
class ItemInfo;
//FIXME: Should replace with ItemInfo
class ParameterText {
public:
string name;
string value;
string type;
string description;
};
class UINodeParameters {
protected:
vector<ParameterText *> textParams;
string comments;
UINode *node;
public:
UINodeParameters(UINode *_node, string type);
virtual ~UINodeParameters();
void saveXML(xmlNode *root);
void export2net(ostream &out);
void load(xmlNodePtr node);
ParameterText *getParamNamed(string n);
void insertNetParams(vector<ItemInfo *> &par);
virtual void insertLoadedParam(ParameterText *param, string type, string value);
ParameterText *addParameterText(string name, string type, string value,
string description);
void removeParameterText(string nameToRemove);
ParameterSet *build(const ParameterSet &par);
void copyParameterText(UINodeParameters *cpy);
void genCode(ostream &out);
const string &getComments() {return comments;}
void setComments(const string &_comments) {comments = _comments;}
vector<ParameterText *> &get_textParams() {return textParams;}
UINode *getUINode() {return node;}
};
#endif
Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:36 2002, using kdoc 2.0a40. |