feat: add string parameter
This commit is contained in:
@@ -10,16 +10,19 @@ class Parameter
|
||||
public:
|
||||
Parameter(Template prmTemplate);
|
||||
std::string getName() const;
|
||||
bt::floatT evalFloat(unsigned int index=0) const;
|
||||
bt::String evalString() const;
|
||||
enzo::prm::Type getType() const;
|
||||
|
||||
bt::floatT evalFloat(unsigned int index=0) const;
|
||||
bt::String evalString(unsigned int index=0) const;
|
||||
|
||||
void setFloat(bt::floatT value, unsigned int index=0);
|
||||
void setString(bt::String value, unsigned int index=0);
|
||||
|
||||
boost::signals2::signal<void ()> valueChanged;
|
||||
private:
|
||||
Template template_;
|
||||
std::vector<bt::floatT> floatValues_;
|
||||
bt::String stringValue_ = "";
|
||||
std::vector<bt::String> stringValues_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user