Commit 32262d44 authored by Roman Tolchenov's avatar Roman Tolchenov
Browse files

Re #2702. Clearing warnings

parent c8d9e410
......@@ -78,6 +78,16 @@ namespace Mantid
/// Set the value of the property
virtual std::string setValue( const std::string& value );
/**
* Set a property value via a DataItem
* @param data :: A shared pointer to a data item
* @return "" if the assignment was successful or a user level description of the problem
*/
virtual std::string setValue(const boost::shared_ptr<Kernel::DataItem> data)
{
return Kernel::PropertyWithValue< boost::shared_ptr<IFitFunction> >::setValue(data);
}
/// Checks whether the entered function is valid.
std::string isValid() const;
......
......@@ -21,10 +21,11 @@ public:
}
virtual std::string name()const {return "FunctionPropertyTest_Function";}
virtual void setWorkspace(boost::shared_ptr<const Workspace>) {}
virtual void function(FunctionDomain&)const {}
virtual boost::shared_ptr<const Workspace> getWorkspace()const {return boost::shared_ptr<const Workspace>();}
virtual void setWorkspace(boost::shared_ptr<const Workspace>,bool) {}
virtual void setWorkspace(boost::shared_ptr<const Workspace>,const std::string&,bool){}
virtual void setSlicing(const std::string&) {}
virtual void function(FunctionDomain&)const {}
virtual boost::shared_ptr<const Workspace> getWorkspace()const {return boost::shared_ptr<const Workspace>();}
/// Returns the size of the fitted data (number of double values returned by the function getData())
virtual size_t dataSize()const {return 0;}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment