50template <
typename TYPE = MatrixWorkspace>
54 const std::string &
name,
const std::string &wsName,
const unsigned int direction,
58 const std::string &
name,
const std::string &wsName,
const unsigned int direction,
63 const std::string &
name,
const std::string &wsName,
const unsigned int direction,
77 std::string
value()
const override;
89 std::string
setDataItem(
const std::shared_ptr<Kernel::DataItem> &
value)
override;
93 std::string
isValid()
const override;
104 bool store()
override;
109 std::string
isValidGroup(
const std::shared_ptr<WorkspaceGroup> &wsGroup)
const;
115 void clear()
override;
An interface that is implemented by WorkspaceProperty.
A property class for workspaces.
std::string value() const override
Get the name of the workspace.
std::string setDataItem(const std::shared_ptr< Kernel::DataItem > &value) override
Set a value from a data item.
void setPropertyMode(const PropertyMode::Type &optional) override
Set the property mode of the property e.g.
std::string isOptionalWs() const
Checks whether the entered workspace (that by this point we've found is not in the ADS) is actually a...
std::string setValue(const std::string &value) override
Set the name of the workspace.
bool isLocking() const override
Does the workspace need to be locked before starting an algorithm?
std::string isValidGroup(const std::shared_ptr< WorkspaceGroup > &wsGroup) const
Checks whether the entered workspace group is valid.
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.
WorkspaceProperty & operator+=(Kernel::Property const *) override
Add the value of another property.
Json::Value valueAsJson() const override
std::string isValidOutputWs() const
Checks whether the entered output workspace is valid.
void retrieveWorkspaceFromADS()
Attempts to retreive the data from the ADS if the data is not foung the internal pointer is set to nu...
static Kernel::Logger g_log
for access to logging streams
std::string setValueFromJson(const Json::Value &value) override
Set the name of the workspace from a Json::Value object Also tries to retrieve it from the AnalysisDa...
bool isOptional() const override
Is the workspace property optional.
std::string getDefault() const override
Get the value the property was initialised with -its default value.
std::string isValid() const override
Checks whether the entered workspace is valid.
bool isValueSerializable() const override
Returns true if the workspace is in the ADS or there is none.
const Kernel::PropertyHistory createHistory() const override
Create a history record.
void clear() override
Reset the pointer to the workspace.
bool isDefault() const override
Indicates if the object is still pointing to the same workspace.
std::vector< std::string > allowedValues() const override
Returns the current contents of the AnalysisDataService for input workspaces.
WorkspaceProperty & operator=(const WorkspaceProperty &right)
Copy assignment operator.
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
If this is an output workspace, store it 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.