A key-value pair map storing both keys and values as strings. More...
#include <XrdClPropertyList.hh>
Public Types | |
typedef std::map< std::string, std::string > | PropertyMap |
Public Member Functions | |
template<typename Item > | |
void | Set (const std::string &name, const Item &value) |
template<typename Item > | |
bool | Get (const std::string &name, Item &item) const |
template<typename Item > | |
Item | Get (const std::string &name) const |
template<typename Item > | |
void | Set (const std::string &name, uint32_t index, const Item &value) |
template<typename Item > | |
bool | Get (const std::string &name, uint32_t index, Item &item) const |
template<typename Item > | |
Item | Get (const std::string &name, uint32_t index) const |
bool | HasProperty (const std::string &name) const |
Check if we now about the given name. | |
bool | HasProperty (const std::string &name, uint32_t index) const |
Check if we know about the given name and index. | |
PropertyMap::const_iterator | begin () const |
Get the begin iterator. | |
PropertyMap::const_iterator | end () const |
Get the end iterator. | |
void | Clear () |
Clear the property list. | |
template<> | |
void | Set (const std::string &name, const XRootDStatus &item) |
template<> | |
bool | Get (const std::string &name, XRootDStatus &item) const |
template<> | |
XRootDStatus | Get (const std::string &name) const |
template<> | |
void | Set (const std::string &name, const URL &item) |
template<> | |
bool | Get (const std::string &name, URL &item) const |
Private Attributes | |
PropertyMap | pProperties |
A key-value pair map storing both keys and values as strings.
typedef std::map<std::string, std::string> XrdCl::PropertyList::PropertyMap |
PropertyMap::const_iterator XrdCl::PropertyList::begin | ( | ) | const [inline] |
Get the begin iterator.
References pProperties.
void XrdCl::PropertyList::Clear | ( | ) | [inline] |
Clear the property list.
References pProperties.
PropertyMap::const_iterator XrdCl::PropertyList::end | ( | ) | const [inline] |
Get the end iterator.
References pProperties.
bool XrdCl::PropertyList::Get | ( | const std::string & | name, | |
URL & | item | |||
) | const [inline] |
XRootDStatus XrdCl::PropertyList::Get | ( | const std::string & | name | ) | const [inline] |
bool XrdCl::PropertyList::Get | ( | const std::string & | name, | |
XRootDStatus & | item | |||
) | const [inline] |
Item XrdCl::PropertyList::Get | ( | const std::string & | name, | |
uint32_t | index | |||
) | const [inline] |
Get the value associated with a key and an index
bool XrdCl::PropertyList::Get | ( | const std::string & | name, | |
uint32_t | index, | |||
Item & | item | |||
) | const [inline] |
Get the value associated with a key and an index
References Get().
Item XrdCl::PropertyList::Get | ( | const std::string & | name | ) | const [inline] |
Get the value associated with a name
References pProperties.
bool XrdCl::PropertyList::Get | ( | const std::string & | name, | |
Item & | item | |||
) | const [inline] |
Get the value associated with a name
References pProperties.
Referenced by XrdCl::CopyJob::CopyJob(), and Get().
bool XrdCl::PropertyList::HasProperty | ( | const std::string & | name, | |
uint32_t | index | |||
) | const [inline] |
Check if we know about the given name and index.
References HasProperty().
bool XrdCl::PropertyList::HasProperty | ( | const std::string & | name | ) | const [inline] |
void XrdCl::PropertyList::Set | ( | const std::string & | name, | |
const URL & | item | |||
) | [inline] |
void XrdCl::PropertyList::Set | ( | const std::string & | name, | |
const XRootDStatus & | item | |||
) | [inline] |
void XrdCl::PropertyList::Set | ( | const std::string & | name, | |
uint32_t | index, | |||
const Item & | value | |||
) | [inline] |
Set a value with a name and an index
name | must not contain spaces | |
index | ||
value | must be convertible to std::string |
References Set().
void XrdCl::PropertyList::Set | ( | const std::string & | name, | |
const Item & | value | |||
) | [inline] |
Associate a value with a key
name | must not contain spaces | |
value | needs to be convertible to std::string |
References pProperties.
Referenced by Set().
PropertyMap XrdCl::PropertyList::pProperties [private] |