Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Encodable.h

Go to the documentation of this file.
00001 
00002 //=============================================================================
00003 /**
00004  *  @file    Encodable.h
00005  *
00006  *  $Id: Encodable.h,v 1.1.1.2 2001/12/04 14:34:41 chad Exp $
00007  *
00008  *   Defines the interface for classes that wish to be
00009  *   encodable/decodable into/from a CDR representation.
00010  *
00011  *
00012  *  @author  Angelo Corsaro <corsaro@cs.wustl.edu>
00013  */
00014 //=============================================================================
00015 
00016 
00017 #ifndef TAO_ENCODABLE_H_
00018 #define TAO_ENCODABLE_H_
00019 
00020 #include "ace/pre.h"
00021 #include "tao/corbafwd.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 /**
00028  * @class TAO_Encodable
00029  *
00030  * @brief TAO_Encodable Interface
00031  *
00032  * This interface should be inherited by classes that wish to be
00033  * encoded/decoded into/from a CDR stream. Implementation of the
00034  * streaming methods is deferred to the subclasses.
00035  */
00036 class TAO_Export TAO_Encodable
00037 {
00038 public:
00039 
00040   virtual ~TAO_Encodable (void);
00041 
00042   ///  Encodes the object implementing this method into a CDR stream.
00043   ///  Returns true on success and false on failure.
00044   virtual CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr) = 0;
00045 
00046   ///  Decodes the object implementing this method from a CDR stream.
00047   ///  Returns true on success and false on failure.
00048   virtual CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr) = 0;
00049 };
00050 
00051 #include "ace/post.h"
00052 
00053 #endif /* TAO_ENCODABLE_H_ */

Generated on Mon Jun 16 13:48:22 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002