summaryrefslogtreecommitdiff
path: root/syncBuffer.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-11 13:46:35 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-11 13:46:35 +0000
commitc44f24c0a3c15cdd7e243c8b36e394f5073753a6 (patch)
tree21f334603a7696de426985a27c21275157ff895a /syncBuffer.h
parentfixed mpi default construktor (diff)
debuging sync buffer
lenght changes, don't know why
Diffstat (limited to 'syncBuffer.h')
-rw-r--r--syncBuffer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/syncBuffer.h b/syncBuffer.h
index 840d929..2058cdd 100644
--- a/syncBuffer.h
+++ b/syncBuffer.h
@@ -34,23 +34,23 @@
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include "buffer.h"
+#include <iostream>
+#include "datatypes.h"
class SyncBuffer : public Buffer
{
public:
- SyncBuffer() : Buffer(){};
- SyncBuffer(u_int32_t length) : Buffer(length){};
- SyncBuffer(Buffer b): Buffer(b) {};
- SyncBuffer(u_int8_t* data, u_int32_t length): Buffer(data,length) {};
+ SyncBuffer() : Buffer(){ std::cout << " SyncBuffer() -> Length: " << length_ << std::endl;};
+ SyncBuffer(u_int32_t length) : Buffer(length){ std::cout << "SyncBuffer(u_int32_t length) Length: " << length_ << std::endl; };
+ SyncBuffer(Buffer b): Buffer(b) {std::cout << " SyncBuffer(Buffer b) " << length_ << std::endl;};
+ SyncBuffer(u_int8_t* data, u_int32_t length): Buffer(data,length) { std::cout << "SyncBuffer(u_int8_t* data, u_int32_t length)-> Length: "<< length_ << std::endl;};
private:
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
- u_int32_t ll = length_+1;
- ar & ll;
+ std::cout << "Length: " << length_ << std::endl;
ar & length_;
- ar & ll;
//for(u_int32_t i = 0; i < length_; i++)
// ar & (*this)[i];
}