Migration from SVN
This commit is contained in:
parent
d7d6c3a217
commit
8cd56f37db
29069 changed files with 0 additions and 4096888 deletions
|
|
@ -1,41 +0,0 @@
|
|||
#ifndef VALUEPARAM_H
|
||||
#define VALUEPARAM_H
|
||||
|
||||
#include <string>
|
||||
#include <boost/python.hpp>
|
||||
|
||||
class ValueParam : public eoParam // ValueParam containing python object
|
||||
{
|
||||
boost::python::object obj;
|
||||
|
||||
public:
|
||||
|
||||
ValueParam() : eoParam(), obj() {}
|
||||
|
||||
ValueParam(boost::python::object o,
|
||||
std::string longName,
|
||||
std::string d = "No Description",
|
||||
char s = 0,
|
||||
bool r = false) : eoParam(longName, "", d, s, r)
|
||||
{
|
||||
std::cerr << "HI" << std::endl;
|
||||
obj = o;
|
||||
eoParam::defValue(getValue());
|
||||
}
|
||||
|
||||
std::string getValue() const
|
||||
{
|
||||
boost::python::str s = boost::python::str(obj);
|
||||
return std::string(boost::python::extract<const char*>(s));
|
||||
}
|
||||
|
||||
void setValue(const std::string& v)
|
||||
{
|
||||
std::cerr << "not implemented yet" << std::endl;
|
||||
}
|
||||
|
||||
boost::python::object getObj() const { return obj;}
|
||||
void setObj(boost::python::object o) { obj = o; }
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue