Line | |
---|
1 | #ifndef DMM_DATASERVICES_H
|
---|
2 | #define DMM_DATASERVICES_H 1
|
---|
3 | /*!
|
---|
4 | \class DataServices DataServices.h
|
---|
5 | "DMM/DataServices.h"
|
---|
6 | \brief Base Class for Data Services
|
---|
7 | \author J.E Campagne
|
---|
8 | */
|
---|
9 |
|
---|
10 | //DDM
|
---|
11 | #include "DMM/IDataServices.h"
|
---|
12 |
|
---|
13 | namespace MEMPHYS {
|
---|
14 | namespace DMM {
|
---|
15 |
|
---|
16 | class DataServices : virtual public IDataServices {
|
---|
17 |
|
---|
18 | public:
|
---|
19 | //! Index generator services
|
---|
20 | virtual unsigned int getNextIndex() { return m_index++;}
|
---|
21 | virtual void resetIndex() { m_index = 0;}
|
---|
22 | virtual void setIndex(const unsigned int& value) { m_index = value;};
|
---|
23 |
|
---|
24 | public:
|
---|
25 | //!Ctor
|
---|
26 | DataServices(): m_index(0) {}
|
---|
27 | //!Dtor
|
---|
28 | virtual ~DataServices() {}
|
---|
29 |
|
---|
30 |
|
---|
31 | private:
|
---|
32 | //! Index
|
---|
33 | unsigned int m_index;
|
---|
34 |
|
---|
35 | };
|
---|
36 | }
|
---|
37 | }
|
---|
38 | #endif // DMM_DATASERVICES_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.