Botan  1.11.15
src/lib/asn1/asn1_str.h
Go to the documentation of this file.
00001 /*
00002 * ASN.1 string type
00003 * (C) 1999-2010 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_ASN1_STRING_H__
00009 #define BOTAN_ASN1_STRING_H__
00010 
00011 #include <botan/asn1_obj.h>
00012 
00013 namespace Botan {
00014 
00015 /**
00016 * Simple String
00017 */
00018 class BOTAN_DLL ASN1_String : public ASN1_Object
00019    {
00020    public:
00021       void encode_into(class DER_Encoder&) const;
00022       void decode_from(class BER_Decoder&);
00023 
00024       std::string value() const;
00025       std::string iso_8859() const;
00026 
00027       ASN1_Tag tagging() const;
00028 
00029       ASN1_String(const std::string& = "");
00030       ASN1_String(const std::string&, ASN1_Tag);
00031    private:
00032       std::string iso_8859_str;
00033       ASN1_Tag tag;
00034    };
00035 
00036 }
00037 
00038 #endif