Changeset 15 in flair-src for trunk/lib/FlairCore/src/io_data.cpp
- Timestamp:
- 04/08/16 15:40:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/io_data.cpp
r2 r15 21 21 using std::string; 22 22 23 namespace flair { namespace core { 23 namespace flair { 24 namespace core { 24 25 25 26 DummyType dummyType; … … 28 29 SignedIntegerType Int16Type(16); 29 30 30 io_data::io_data(const Object* parent,string name,int n): Mutex(parent,name) { 31 pimpl_=new io_data_impl(this,n); 31 io_data::io_data(const Object *parent, string name, int n) 32 : Mutex(parent, name) { 33 pimpl_ = new io_data_impl(this, n); 32 34 } 33 35 34 io_data::~io_data() { 35 delete pimpl_; 36 } 36 io_data::~io_data() { delete pimpl_; } 37 37 38 void io_data::AppendLogDescription(string description,DataType const &datatype) { 39 pimpl_->AppendLogDescription(description,datatype); 38 void io_data::AppendLogDescription(string description, 39 DataType const &datatype) { 40 pimpl_->AppendLogDescription(description, datatype); 40 41 } 41 42 42 43 void io_data::SetDataTime(Time time) { 43 44 pimpl_->time=time;45 44 GetMutex(); 45 pimpl_->time = time; 46 ReleaseMutex(); 46 47 } 47 48 48 49 Time io_data::DataTime(void) const { 49 50 51 tmp=pimpl_->time;52 53 50 Time tmp; 51 GetMutex(); 52 tmp = pimpl_->time; 53 ReleaseMutex(); 54 return tmp; 54 55 } 55 56 56 const io_data *io_data::Prev(int n) const {57 if(n>0)58 return prev->Prev(n-1);59 60 57 const io_data *io_data::Prev(int n) const { 58 if (n > 0) 59 return prev->Prev(n - 1); 60 else 61 return this; 61 62 } 62 63 63 void io_data::SetPtrToCircle(void **ptr) { 64 pimpl_->circle_ptr=ptr; 65 } 64 void io_data::SetPtrToCircle(void **ptr) { pimpl_->circle_ptr = ptr; } 66 65 67 66 } // end namespace core
Note:
See TracChangeset
for help on using the changeset viewer.