00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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