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

Integer.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: Integer.h,v 1.3 2004/05/19 15:56:37 mmarsh Exp $
00008 //
00009 // $Log: Integer.h,v $
00010 // Revision 1.3  2004/05/19 15:56:37  mmarsh
00011 // Added copyright and license statements.
00012 //
00013 // Revision 1.2  2003/11/04 22:31:46  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_ASN1_INTEGER_H__
00019 #define __CODEX_ASN1_INTEGER_H__
00020 
00021 #include "Base.h"
00022 
00023 namespace CODEX_ASN1
00024 {
00030    class Integer : public Base
00031    {
00032       public :
00034          Integer();
00036          Integer( int value );
00038          Integer( const ASN1_INTEGER* asn1 );
00040          Integer( const Integer& aInt );
00042          virtual ~Integer();
00043 
00045          void operator=( const Integer& aInt );
00046 
00048          int value() const { return m_value; }
00050          const ASN1_INTEGER* asn1() const { return m_asn1; }
00051 
00052          int marshal( unsigned char ** pp ) const;
00053          void* unmarshal( void* bogus, unsigned char** pp, long length );
00054 
00055       protected :
00056 
00057       private :
00058          int            m_value;
00059          ASN1_INTEGER*  m_asn1;
00060    };
00061 
00062 }
00063 
00064 #endif /* __CODEX_ASN1_INTEGER_H__ */

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18