Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File 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.4 2005/01/21 19:44:16 mmarsh Exp $
00008 //
00009 // $Log: Integer.h,v $
00010 // Revision 1.4  2005/01/21 19:44:16  mmarsh
00011 // Updated for compatibility with Doxygen 1.4.1
00012 //
00013 // Revision 1.3  2004/05/19 15:56:37  mmarsh
00014 // Added copyright and license statements.
00015 //
00016 // Revision 1.2  2003/11/04 22:31:46  mmarsh
00017 // *** empty log message ***
00018 //
00019 //
00020 
00021 #ifndef __CODEX_ASN1_INTEGER_H__
00022 #define __CODEX_ASN1_INTEGER_H__
00023 
00024 #include "Base.h"
00025 
00026 namespace CODEX_ASN1
00027 {
00033    class Integer : public Base
00034    {
00035       public :
00037          Integer();
00039          Integer( int value );
00041          Integer( const ASN1_INTEGER* asn1 );
00043          Integer( const Integer& aInt );
00045          virtual ~Integer();
00046 
00048          void operator=( const Integer& aInt );
00049 
00051          int value() const { return m_value; }
00053          const ASN1_INTEGER* asn1() const { return m_asn1; }
00054 
00055          int marshal( unsigned char ** pp ) const;
00056          void* unmarshal( void* bogus, unsigned char** pp, long length );
00057 
00058       protected :
00059 
00060       private :
00061          int            m_value;
00062          ASN1_INTEGER*  m_asn1;
00063    };
00064 
00065 }
00066 
00067 #endif /* __CODEX_ASN1_INTEGER_H__ */

Generated on Fri May 6 17:39:58 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1