Commit 74d44e25 authored by Christof Pieloth's avatar Christof Pieloth
Browse files

[STYLE][DOC] Correct style and doc.

parent b59a73a9
......@@ -107,6 +107,6 @@ void WItemSelection::addItem( std::string name, std::string description, const c
void WItemSelection::addItem( boost::shared_ptr< WItemSelectionItem > item )
{
push_back (item);
push_back( item );
}
......@@ -135,6 +135,8 @@ public:
/**
* Method to add a new item, which can be derived from WItemSelectionItem.
*
* \param item WItemSelectionItem or derivation which should be add.
*/
void addItem( boost::shared_ptr< WItemSelectionItem > item );
......
......@@ -70,6 +70,8 @@ public:
/**
* Dynamic cast of the object, if a derivative of WItemSelectionItem was add to WItemSelection.
*
* \return Returns the converted item of new type T or 0 if a conversion is not possible.
*/
template< typename T > T* getAs()
{
......
......@@ -58,6 +58,8 @@ public:
/**
* Returns the value.
*
* \return Value which is stored.
*/
T getValue() const
{
......@@ -66,6 +68,8 @@ public:
/**
* Sets a new value, which is associated with this item.
*
* \param value new value which should be stored by this item.
*/
void setValue( T value )
{
......@@ -73,6 +77,9 @@ public:
}
private:
/**
* Value which is stored by this item.
*/
T m_value;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment