bool
ValueNode_Integer::set_link_vfunc(int i,ValueNode::Handle x)
{
- assert(i >= 0 && i < link_count());
+ assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: integer_ = x; break;
ValueNode::LooseHandle
ValueNode_Integer::get_link_vfunc(int i)const
{
- assert(i >= 0 && i < link_count());
+ assert(i>=0 && i<link_count());
+
if(i==0) return integer_;
return 0;
String
ValueNode_Integer::link_local_name(int i)const
{
- assert(i >= 0 && i < link_count());
+ assert(i>=0 && i<link_count());
+
if(i==0) return _("Integer");
return String();
}
String
ValueNode_Integer::link_name(int i)const
{
- assert(i >= 0 && i < link_count());
+ assert(i>=0 && i<link_count());
+
if(i==0) return "integer";
return String();
}
return _("From Integer");
}
+// don't show this to the user at the moment - maybe it's not very useful
bool
ValueNode_Integer::check_type(ValueBase::Type type)
{
- return
- type==ValueBase::TYPE_ANGLE ||
- type==ValueBase::TYPE_BOOL ||
- type==ValueBase::TYPE_REAL ||
- type==ValueBase::TYPE_TIME;
+ return false;
+// return
+// type==ValueBase::TYPE_ANGLE ||
+// type==ValueBase::TYPE_BOOL ||
+// type==ValueBase::TYPE_REAL ||
+// type==ValueBase::TYPE_TIME;
}