Documentation for VDataTool class.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-24 15:00:15 +02:00
parent ccb5f38537
commit b6311ed773
2 changed files with 15 additions and 15 deletions

View File

@ -190,7 +190,7 @@ protected:
*/ */
virtual void RefreshDataInFile()=0; virtual void RefreshDataInFile()=0;
/** /**
* @brief getData return data container. * @brief getData return pointer to data container.
* @return container. * @return container.
*/ */
inline const VContainer *getData() const {return &data;} inline const VContainer *getData() const {return &data;}

View File

@ -33,46 +33,46 @@
//We need QObject class because we use qobject_cast. //We need QObject class because we use qobject_cast.
/** /**
* @brief The VDataTool class * @brief The VDataTool class need for getting access to data container of tool.
*/ */
class VDataTool : public QObject class VDataTool : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**
* @brief VDataTool * @brief VDataTool constructor.
* @param data container with variables * @param data container with variables
* @param parent parent object * @param parent parent object
*/ */
VDataTool(VContainer *data, QObject *parent = 0); VDataTool(VContainer *data, QObject *parent = 0);
virtual ~VDataTool(){} virtual ~VDataTool(){}
/** /**
* @brief operator = * @brief operator = assignment operator.
* @param tool * @param tool tool
* @return * @return tool
*/ */
VDataTool &operator= (const VDataTool &tool); VDataTool &operator= (const VDataTool &tool);
/** /**
* @brief getData * @brief getData return data container.
* @return * @return container.
*/ */
inline VContainer getData() const { return data; } inline VContainer getData() const { return data; }
/** /**
* @brief setData * @brief setData set data container.
* @param value * @param value container.
*/ */
inline void setData(const VContainer *value){data = *value;} inline void setData(const VContainer *value){data = *value;}
/** /**
* @brief referens * @brief referens return count of referens.
* @return * @return count count of referens.
*/ */
virtual inline qint64 referens() const {return _referens;} virtual inline qint64 referens() const {return _referens;}
/** /**
* @brief incrementReferens * @brief incrementReferens increment referens.
*/ */
virtual inline void incrementReferens(){++_referens;} virtual inline void incrementReferens(){++_referens;}
/** /**
* @brief decrementReferens * @brief decrementReferens decrement referens.
*/ */
virtual void decrementReferens(); virtual void decrementReferens();
protected: protected:
@ -81,7 +81,7 @@ protected:
*/ */
VContainer data; VContainer data;
/** /**
* @brief _referens * @brief _referens keep count tools what use this tool. If value more than 1 you can't delete tool.
*/ */
qint64 _referens; qint64 _referens;
}; };