54template <
typename TYPE = MatrixWorkspace>
58 const std::string &
name,
const std::string &wsName,
const unsigned int direction,
62 const std::string &
name,
const std::string &wsName,
const unsigned int direction,
67 const std::string &
name,
const std::string &wsName,
const unsigned int direction,
81 std::string
value()
const override;
113 std::string
isValidGroup(
const std::shared_ptr<WorkspaceGroup> &wsGroup)
const;
double value
The value of the point.
An interface that is implemented by WorkspaceProperty.
A property class for workspaces.
std::string value() const override
Returns the value of the property as a string.
std::string setDataItem(const std::shared_ptr< Kernel::DataItem > &value) override
Set the value of the property via a DataItem pointer.
std::string isOptionalWs() const
std::string setValue(const std::string &value) override
Set the value of the property via a string.
bool isLocking() const override
Will the workspace be locked when starting an algorithm?
WorkspaceProperty & operator+=(Kernel::Property const *) override
Add to this.
std::string isValidGroup(const std::shared_ptr< WorkspaceGroup > &wsGroup) const
WorkspaceProperty< TYPE > * clone() const override
'Virtual copy constructor'
std::string m_initialWSName
The name of the workspace that the this this object was created for.
Workspace_sptr getWorkspace() const override
Get a pointer to the workspace.
Json::Value valueAsJson() const override
Returns the value of the property as a Json::Value.
WorkspaceProperty & operator=(const WorkspaceProperty &right)
void setIsMasterRank(bool isMasterRank) override
Sets a flag indicating whether this is the master rank in MPI builds.
WorkspaceProperty & operator=(const std::shared_ptr< TYPE > &value) override
WorkspaceProperty(const std::string &name, const std::string &wsName, const unsigned int direction, const PropertyMode::Type optional, const LockMode::Type locking, const Kernel::IValidator_sptr &validator=Kernel::IValidator_sptr(new Kernel::NullValidator))
std::string isValidOutputWs() const
void retrieveWorkspaceFromADS()
static Kernel::Logger g_log
for access to logging streams
std::string setValueFromJson(const Json::Value &value) override
Set the value of the property via a Json object.
WorkspaceProperty(const std::string &name, const std::string &wsName, const unsigned int direction, const PropertyMode::Type optional, const Kernel::IValidator_sptr &validator=Kernel::IValidator_sptr(new Kernel::NullValidator))
bool isOptional() const override
Is the input workspace property optional (can be blank)?
std::string getDefault() const override
Get the default value for the property which is the value the property was initialised with.
std::string isValid() const override
Overridden function that checks whether the property, if not overriden returns "".
bool isValueSerializable() const override
Whether the string returned by value() can be used for serialization.
const Kernel::PropertyHistory createHistory() const override
Create a PropertyHistory object representing the current state of the Property.
void clear() override
Clear the stored pointer.
WorkspaceProperty(const std::string &name, const std::string &wsName, const unsigned int direction, const Kernel::IValidator_sptr &validator=Kernel::IValidator_sptr(new Kernel::NullValidator))
bool isDefault() const override
Overriden function that returns if property has the same value that it was initialised with,...
std::vector< std::string > allowedValues() const override
Returns the set of valid values for this property, if such a set exists.
WorkspaceProperty(const WorkspaceProperty &right)
PropertyMode::Type m_optional
A flag indicating whether the property should be considered optional.
std::string m_workspaceName
The name of the workspace (as used by the AnalysisDataService)
LockMode::Type m_locking
A flag indicating whether the workspace should be read or write-locked when an algorithm begins.
bool store() override
Store a workspace into the AnalysisDataService.
The Logger class is in charge of the publishing messages from the framework through various channels.
NullValidator is a validator that doesn't.
This class stores information about the parameters used by an algorithm.
The concrete, templated class for properties.
Base class for properties.
unsigned int direction() const
returns the direction of the property
const std::string & name() const
Get the property's name.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Helper class which provides the Collimation Length for SANS instruments.
Enumeration for locking behaviour.
Enumeration for a mandatory/optional property.