#include "tao/CORBA_methods.h"#include "tao/OctetSeqC.h"#include "tao/Pseudo_VarOut_T.h"#include "ace/Thread_Mutex.h"#include "ace/Atomic_Op.h"#include "tao/Principal.inl"Include dependency graph for Principal.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | CORBA |
Functions | |
| TAO_Export CORBA::Boolean | operator<< (TAO_OutputCDR &, CORBA::Principal *) |
| TAO_Export CORBA::Boolean | operator>> (TAO_InputCDR &, CORBA::Principal *&) |
The CORBA::Principal pseudo-object implementation.
DOC group at Wash U and UCI.
Definition in file Principal.h.
|
||||||||||||
|
Definition at line 31 of file Principal.cpp. References ACE_OutputCDR::good_bit(), CORBA::Principal::id, ACE_OutputCDR::write_long(), ACE_OutputCDR::write_octet_array(), and ACE_OutputCDR::write_ulong().
00032 {
00033 if (x != 0)
00034 {
00035 CORBA::ULong length = x->id.length ();
00036 cdr.write_long (length);
00037 cdr.write_octet_array (x->id.get_buffer (), length);
00038 }
00039 else
00040 {
00041 cdr.write_ulong (0);
00042 }
00043
00044 return (CORBA::Boolean) cdr.good_bit ();
00045 }
|
|
||||||||||||
|
Definition at line 48 of file Principal.cpp. References ACE_NEW_RETURN, ACE_InputCDR::good_bit(), CORBA::Principal::id, ACE_InputCDR::read_octet_array(), and ACE_InputCDR::read_ulong().
00049 {
00050 CORBA::ULong length;
00051 cdr.read_ulong (length);
00052
00053 if (length == 0 || !cdr.good_bit ())
00054 {
00055 x = 0;
00056 }
00057 else
00058 {
00059 ACE_NEW_RETURN (x, CORBA::Principal, 0);
00060 x->id.length (length);
00061 cdr.read_octet_array (x->id.get_buffer (), length);
00062 }
00063
00064 return (CORBA::Boolean) cdr.good_bit ();
00065 }
|
1.3.6