Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS2 / JAWS / Data_Block.cpp
bloba0142a386fca87f083dc6e34869138fbc37d85fc
1 #include "JAWS/Data_Block.h"
2 #include "JAWS/Policy.h"
5 JAWS_Data_Block::JAWS_Data_Block ()
6 : ACE_Message_Block (JAWS_DATA_BLOCK_SIZE),
7 io_handler_ (0),
8 policy_ (0),
9 task_ (0),
10 payload_ (0)
14 JAWS_Data_Block::JAWS_Data_Block (JAWS_Data_Block &db)
15 : ACE_Message_Block (JAWS_DATA_BLOCK_SIZE),
16 io_handler_ (db.io_handler_),
17 policy_ (db.policy_),
18 task_ (db.task_),
19 payload_ (db.payload_)
23 JAWS_Data_Block::~JAWS_Data_Block ()
27 JAWS_Pipeline_Handler *
28 JAWS_Data_Block::task ()
30 return this->task_;
33 JAWS_IO_Handler *
34 JAWS_Data_Block::io_handler ()
36 return this->io_handler_;
39 JAWS_Dispatch_Policy *
40 JAWS_Data_Block::policy ()
42 return this->policy_;
45 void *
46 JAWS_Data_Block::payload ()
48 return this->payload_;
51 void
52 JAWS_Data_Block::task (JAWS_Pipeline_Handler *taskp)
54 this->task_ = taskp;
57 void
58 JAWS_Data_Block::io_handler (JAWS_IO_Handler *handlerp)
60 this->io_handler_ = handlerp;
63 void
64 JAWS_Data_Block::policy (JAWS_Dispatch_Policy *policyp)
66 this->policy_ = policyp;
69 void
70 JAWS_Data_Block::payload (void *payloadp)
72 this->payload_ = payloadp;