CFEL - ASG Software Suite  2.5.0
CASS
data.cpp
Go to the documentation of this file.
1 // Copyright (C) 2014 Lutz Foucar
2 
3 /**
4  * @file data.cpp contains the base class for add viewer data
5  *
6  * @author Lutz Foucar
7  */
8 
9 #include "data.h"
10 
11 using namespace jocassview;
12 
14  : _wasUpdated(false)
15 {
16 
17 }
18 
20 {
21 
22 }
23 
24 void Data::setSourceName(const QString &name)
25 {
26  _sourceName = name;
27 }
28 
30 {
31  return _sourceName;
32 }
33 
34 bool Data::wasUpdated()const
35 {
36  return _wasUpdated;
37 }
virtual void setSourceName(const QString &name)
set the source name
Definition: data.cpp:24
contains the base class for add viewer data
virtual QString sourceName() const
retrieve the source name
Definition: data.cpp:29
virtual ~Data()
virtual destrutor
Definition: data.cpp:19
QString _sourceName
the name of the source
Definition: data.h:70
Data()
constructor
Definition: data.cpp:13
bool _wasUpdated
flag to tell whether the data was updated
Definition: data.h:73
virtual bool wasUpdated() const
retrieve was upDated flag
Definition: data.cpp:34