2013-08-20 12:26:02 +02:00
|
|
|
#pragma GCC diagnostic push
|
2013-08-13 18:48:36 +02:00
|
|
|
#pragma GCC diagnostic ignored "-Weffc++"
|
|
|
|
#include "vdatatool.h"
|
2013-08-20 12:26:02 +02:00
|
|
|
#pragma GCC diagnostic pop
|
2013-08-13 18:48:36 +02:00
|
|
|
|
|
|
|
VDataTool::VDataTool(VContainer *data, QObject *parent) :
|
2013-08-20 12:26:02 +02:00
|
|
|
QObject(parent), data(*data){
|
2013-08-13 18:48:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
VDataTool::~VDataTool(){
|
|
|
|
}
|
|
|
|
|
|
|
|
const VDataTool &VDataTool::operator =(const VDataTool &tool){
|
|
|
|
data = tool.getData();
|
2013-08-20 12:26:02 +02:00
|
|
|
return *this;
|
2013-08-13 18:48:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
VContainer VDataTool::getData() const{
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
void VDataTool::setData(const VContainer *value){
|
2013-08-29 12:31:50 +02:00
|
|
|
data.Clear();
|
2013-08-13 18:48:36 +02:00
|
|
|
data = *value;
|
|
|
|
}
|