Main Page   Class Hierarchy   Compound List   File List   Compound Members  

C_ProtocolBinarySeparator.hpp

00001 /*
00002  *  This program is free software; you can redistribute it and/or modify
00003  *  it under the terms of the GNU General Public License as published by
00004  *  the Free Software Foundation; either version 2 of the License, or
00005  *  (at your option) any later version.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00015  *
00016  * (c)Copyright 2006 Hewlett-Packard Development Company, LP.
00017  *
00018  */
00019 
00020 #ifndef _C_PROTOCOLBINARYSEPARATOR_
00021 #define _C_PROTOCOLBINARYSEPARATOR_
00022 
00023 #include "C_ProtocolBinary.hpp"
00024 
00025 class C_ProtocolBinarySeparator : public C_ProtocolBinary {
00026 
00027 public:
00028 
00029   C_ProtocolBinarySeparator() ;
00030   ~C_ProtocolBinarySeparator() ;
00031 
00032   virtual C_ProtocolFrame::T_MsgError       
00033   encode_body (int            P_nbVal, 
00034                T_pBodyValue   P_val, 
00035                unsigned char *P_buf, 
00036                size_t        *P_size) ;
00037 
00038   virtual C_MessageFrame*    create_new_message (C_MessageFrame *P_msg);
00039   virtual C_MessageFrame*    create_new_message (void                *P_xml,
00040                                                  T_pInstanceDataList  P_list,
00041                                                  int                 *P_nb_value);
00042 
00043   virtual int 
00044   decode_body (unsigned char *P_buf, 
00045                size_t         P_size,
00046                T_pBodyValue   P_valDec,
00047                int           *P_nbValDec,
00048                int           *P_headerId);
00049 
00050   virtual void  construction_data( C_XmlData            *P_def, 
00051                                    char                **P_name,
00052                                    T_pContructorResult   P_res) ;
00053 
00054 private:
00055   size_t  m_header_body_field_separator_size ;
00056   int     m_session_id ;
00057 
00058 
00059 } ; // class C_ProtocolBinarySeparator
00060 
00061 #endif // _C_PROTOCOLBINARYSEPARATOR_
00062 
00063 

Generated on Wed Mar 7 14:44:53 2007 for Seagull by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002