|
OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
|
Parser for an attribute of type string. More...
#include <UpperCaseString.h>


Public Types | |
| enum | OwnerType { ELEMENT , COMMAND , SUB_COMMAND , STATEMENT , NONE } |
Public Member Functions | |
| UpperCaseString (const std::string &name, const std::string &help) | |
| Constructor. More... | |
| virtual | ~UpperCaseString () |
| virtual const std::string & | getType () const |
| Return attribute type string `‘string’'. More... | |
| virtual void | parse (Attribute &, Statement &, bool) const |
| Parse the attribute. More... | |
| virtual AttributeHandler * | clone () const |
| Make clone. More... | |
| virtual AttributeBase * | getDefault () const |
| Return default value. More... | |
| virtual const std::string & | getHelp () const |
| Return help string. More... | |
| virtual const std::string & | getName () const |
| Return attribute name. More... | |
| virtual void | parseComponent (Attribute &a, Statement &s, bool eval, int i) const |
| Parse component value. More... | |
| bool | isDeferred () const |
| Return defer flag. More... | |
| void | setDeferred (bool) |
| Set or reset defer flag. More... | |
| bool | isReadOnly () const |
| Return read-only flag. More... | |
| void | setReadOnly (bool) |
| Set or reset read-only flag. More... | |
| void | setPredefinedValues (const std::set< std::string > &, const std::string &) |
| Add predefined strings values to the help. More... | |
| int | addReference () const |
| Increment reference count. More... | |
| int | removeReference () const |
| Decrement the reference count. More... | |
| bool | isShared () const |
| Test for sharing. More... | |
Static Public Member Functions | |
| static std::multimap< OwnerType, std::string > | getOwner (const std::string &att) |
| static void | addAttributeOwner (const std::string &owner, const OwnerType &type, const std::string &name) |
Protected Attributes | |
| const std::string | itsName |
| Attribute name. More... | |
| const std::string | itsHelp |
| Help text. More... | |
| std::shared_ptr< AttributeBase > | itsDefault |
| Default value. More... | |
| bool | is_deferred |
| Defer flag. More... | |
| bool | is_readonly |
| Read-only flag. More... | |
Private Member Functions | |
| UpperCaseString () | |
| UpperCaseString (const UpperCaseString &) | |
| void | operator= (const UpperCaseString &) |
Private Attributes | |
| int | refCount |
Static Private Attributes | |
| static std::multimap< std::string, std::pair< OwnerType, std::string > > | attributeOwnerDictionary_s |
Parser for an attribute of type string.
Definition at line 29 of file UpperCaseString.h.
|
inherited |
| Enumerator | |
|---|---|
| ELEMENT | |
| COMMAND | |
| SUB_COMMAND | |
| STATEMENT | |
| NONE | |
Definition at line 120 of file AttributeHandler.h.
| Attributes::UpperCaseString::UpperCaseString | ( | const std::string & | name, |
| const std::string & | help | ||
| ) |
Constructor.
Definition at line 32 of file UpperCaseString.cpp.
|
virtual |
Definition at line 37 of file UpperCaseString.cpp.
|
private |
|
private |
|
staticinherited |
Definition at line 124 of file AttributeHandler.cpp.
References AttributeHandler::attributeOwnerDictionary_s.
Referenced by OpalElement::OpalElement(), OpalElement::registerOwnership(), Object::registerOwnership(), and TrackCmd::TrackCmd().
|
inlineinherited |
Increment reference count.
Definition at line 83 of file RCObject.h.
References RCObject::refCount.
Referenced by Pointer< Object >::operator=(), and Pointer< Object >::unique().
|
virtualinherited |
Make clone.
Definition at line 43 of file AttributeHandler.cpp.
|
virtualinherited |
Return default value.
Definition at line 49 of file AttributeHandler.cpp.
References AttributeHandler::itsDefault, and AttributeHandler::itsName.
|
virtualinherited |
Return help string.
Definition at line 59 of file AttributeHandler.cpp.
References AttributeHandler::itsHelp.
|
virtualinherited |
Return attribute name.
Definition at line 64 of file AttributeHandler.cpp.
References AttributeHandler::itsName.
|
staticinherited |
Definition at line 108 of file AttributeHandler.cpp.
References AttributeHandler::attributeOwnerDictionary_s.
Referenced by OpalParser::getHint().
|
virtual |
Return attribute type string `‘string’'.
Implements AttributeHandler.
Definition at line 41 of file UpperCaseString.cpp.
|
inherited |
Return defer flag.
Definition at line 78 of file AttributeHandler.cpp.
References AttributeHandler::is_deferred.
Referenced by Attributes::Real::parse().
|
inherited |
Return read-only flag.
Definition at line 88 of file AttributeHandler.cpp.
References AttributeHandler::is_readonly.
|
inlineinherited |
|
private |
Parse the attribute.
Implements AttributeHandler.
Definition at line 46 of file UpperCaseString.cpp.
References Expressions::parseStringValue(), and Attributes::setUpperCaseString().

|
virtualinherited |
Parse component value.
Reimplemented in Attributes::BoolArray, Attributes::RealArray, Attributes::StringArray, Attributes::TokenListArray, and Attributes::UpperCaseStringArray.
Definition at line 69 of file AttributeHandler.cpp.
References AttributeHandler::itsName.
|
inlineinherited |
Decrement the reference count.
Definition at line 88 of file RCObject.h.
References RCObject::refCount.
|
inherited |
Set or reset defer flag.
Definition at line 83 of file AttributeHandler.cpp.
References AttributeHandler::is_deferred.
|
inherited |
Add predefined strings values to the help.
Definition at line 97 of file AttributeHandler.cpp.
References AttributeHandler::itsHelp.
Referenced by Attributes::PredefinedString::PredefinedString().
|
inherited |
Set or reset read-only flag.
Definition at line 93 of file AttributeHandler.cpp.
References AttributeHandler::is_readonly.
|
staticprivateinherited |
Definition at line 153 of file AttributeHandler.h.
Referenced by AttributeHandler::addAttributeOwner(), and AttributeHandler::getOwner().
|
protectedinherited |
Defer flag.
Definition at line 141 of file AttributeHandler.h.
Referenced by AttributeHandler::isDeferred(), Attributes::Bool::parse(), Attributes::BoolArray::parse(), Attributes::RealArray::parse(), and AttributeHandler::setDeferred().
|
protectedinherited |
Read-only flag.
Definition at line 144 of file AttributeHandler.h.
Referenced by AttributeHandler::isReadOnly(), and AttributeHandler::setReadOnly().
|
protectedinherited |
Default value.
Definition at line 138 of file AttributeHandler.h.
Referenced by AttributeHandler::getDefault().
|
protectedinherited |
Help text.
Definition at line 135 of file AttributeHandler.h.
Referenced by AttributeHandler::getHelp(), and AttributeHandler::setPredefinedValues().
|
protectedinherited |
Attribute name.
Definition at line 132 of file AttributeHandler.h.
Referenced by AttributeHandler::getDefault(), AttributeHandler::getName(), and AttributeHandler::parseComponent().
|
mutableprivateinherited |
Definition at line 76 of file RCObject.h.
Referenced by RCObject::addReference(), RCObject::isShared(), and RCObject::removeReference().