Skip to content

Commit

Permalink
Re #11508 Initial rumbling
Browse files Browse the repository at this point in the history
minor changes to identify change in instrument size if description is added to a parameter
  • Loading branch information
abuts committed Apr 13, 2015
1 parent e430e52 commit 009c897
Showing 1 changed file with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ class MANTID_GEOMETRY_DLL Parameter {
/// The name of the property
std::string m_name;
std::string m_str_value; ///< Parameter value as a string
/// property description
//std::string m_description;
};


/// Templated class for parameters of type \c Type
template <class Type> class MANTID_GEOMETRY_DLL ParameterType : public Parameter {
template <class Type> class DLLExport ParameterType : public Parameter {
public:
/// Returns the value of the property as a string
std::string asString() const;
Expand Down Expand Up @@ -155,24 +157,6 @@ template <class Type> class MANTID_GEOMETRY_DLL ParameterType : public Parameter
Type m_value; ///< Value
};

template <class Type> class MANTID_GEOMETRY_DLL ParameterWithHelp : public ParameterType<Type> {
public:

Parameter *clone() const { return new ParameterWithHelp(*this); }

protected:
/// Constructor
ParameterWithHelp() : ParameterType<Type>(){}

private:
/// The string containing full description of the property
std::string m_description;
/// The name of the property
std::string m_name;


};

//--------------------------------------------------------------------------
// Template definitions - Parameter class
//--------------------------------------------------------------------------
Expand Down

0 comments on commit 009c897

Please sign in to comment.