CDR.cpp File Reference

#include "tao/CDR.h"
#include "tao/Timeprobe.h"
#include "tao/ORB_Core.h"
#include "tao/SystemException.h"
#include "tao/GIOP_Fragmentation_Strategy.h"
Include dependency graph for CDR.cpp:

Go to the source code of this file.

Functions

 ACE_RCSID (tao, CDR,"$Id: CDR.cpp 84457 2009-02-13 14:52:13Z msmit $") 1 TAO_OutputCDR

Function Documentation

ACE_RCSID ( tao  ,
CDR  ,
"$Id: CDR.cpp 84457 2009-02-13 14:52:13Z msmit $"   
)

Definition at line 14 of file CDR.cpp.

00016                : CDR.cpp 84457 2009-02-13 14:52:13Z msmit $")
00017 
00018 
00019 #if defined (ACE_ENABLE_TIMEPROBES)
00020 
00021 static const char *TAO_CDR_Timeprobe_Description[] =
00022 {
00023   "OutputCDR::ctor[1] - enter",
00024   "OutputCDR::ctor[1] - leave",
00025   "OutputCDR::ctor[2] - enter",
00026   "OutputCDR::ctor[2] - leave",
00027   "OutputCDR::ctor[3] - enter",
00028   "OutputCDR::ctor[3] - leave",
00029   "OutputCDR::ctor[4] - enter",
00030   "OutputCDR::ctor[4] - leave",
00031   "OutputCDR::ctor[5] - enter",
00032   "OutputCDR::ctor[5] - leave"
00033 };
00034 
00035 enum
00036 {
00037   TAO_OUTPUT_CDR_CTOR1_ENTER = 2000,
00038   TAO_OUTPUT_CDR_CTOR1_LEAVE,
00039   TAO_OUTPUT_CDR_CTOR2_ENTER,
00040   TAO_OUTPUT_CDR_CTOR2_LEAVE,
00041   TAO_OUTPUT_CDR_CTOR3_ENTER,
00042   TAO_OUTPUT_CDR_CTOR3_LEAVE,
00043   TAO_OUTPUT_CDR_CTOR4_ENTER,
00044   TAO_OUTPUT_CDR_CTOR4_LEAVE,
00045   TAO_OUTPUT_CDR_CTOR5_ENTER,
00046   TAO_OUTPUT_CDR_CTOR5_LEAVE
00047 };
00048 
00049 // Setup Timeprobes
00050 ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_CDR_Timeprobe_Description,
00051                                   TAO_OUTPUT_CDR_CTOR1_ENTER);
00052 
00053 #endif /* ACE_ENABLE_TIMEPROBES */
00054 
00055 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00056 
00057 TAO_OutputCDR::TAO_OutputCDR (size_t size,
00058                               int byte_order,
00059                               ACE_Allocator *buffer_allocator,
00060                               ACE_Allocator *data_block_allocator,
00061                               ACE_Allocator* message_block_allocator,
00062                               size_t memcpy_tradeoff,
00063                               ACE_CDR::Octet major_version,
00064                               ACE_CDR::Octet minor_version)
00065   : ACE_OutputCDR (size,
00066                    byte_order,
00067                    buffer_allocator,
00068                    data_block_allocator,
00069                    message_block_allocator,
00070                    memcpy_tradeoff,
00071                    major_version,
00072                    minor_version)
00073   , fragmentation_strategy_ (0)
00074   , more_fragments_ (false)
00075   , request_id_ (0)
00076   , stub_ (0)
00077   , message_semantics_ (TAO_TWOWAY_REQUEST)
00078   , timeout_ (0)
00079 {
00080   ACE_FUNCTION_TIMEPROBE (TAO_OUTPUT_CDR_CTOR1_ENTER);
00081 
00082 #if defined (TAO_ZERO_TAO_OUTPUTCDR_ALLOCATED_BUFFERS)
00083   // Zero out the buffer if we allocated the buffer.
00084   if (size == 0)
00085     (void) ACE_OS::memset (this->current()->wr_ptr(),
00086                            0,
00087                            this->current()->space());
00088 #endif /* TAO_ZERO_TAO_OUTPUTCDR_ALLOCATED_BUFFERS */
00089 }

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:23:39 2009 for TAO by  doxygen 1.6.1