Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

attribute_info.hpp

00001 /*
00002  * Copyright (c) 2003, Raymond Bosman
00003  * Copyright (c) 2003, Frederik Holljen
00004  * All Rights Reserved.
00005  *
00006  * See COPYING for licensing.
00007  */
00008 
00009 
00010 #ifndef ATTRIBUTEINFO_HPP
00011 #define ATTRIBUTEINFO_HPP
00012 
00013 #include <fstream>
00014 
00015 #include "defs.hpp"
00016 #include "classwriterbase.hpp"
00017 
00018 namespace ClassEncoder
00019 {
00020 
00022 
00030 class attribute_info : public ClassWriterBase
00031 {
00032 public:
00033     attribute_info();
00034     virtual ~attribute_info();
00035 
00036     virtual void write( std::ofstream &stream );
00038 
00042     virtual unsigned int size() = 0;
00043 
00044 protected:
00046 
00050     void setNameIndex( u2 index ) { attribute_name_index = index; }
00051 
00052 private:
00053     u2 attribute_name_index;
00054 };
00055 
00056 } // end of namespace
00057 #endif // ATTRIBUTEINFO_HPP

Generated on Mon Dec 1 14:26:27 2003 for Ck by doxygen 1.3.3