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

classwriterbase.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 CLASSWRITERBASE_HPP
00011 #define CLASSWRITERBASE_HPP
00012 
00013 #include <fstream>
00014 #include "defs.hpp"
00015 
00016 namespace ClassEncoder
00017 {
00018 
00020 
00024 class ClassWriterBase
00025 {
00026 public:
00027     ClassWriterBase();
00028     virtual ~ClassWriterBase();
00029 
00030     void writeu1Array( std::ofstream &stream, const char *data, unsigned int length ) const;
00031     void writeu1( std::ofstream &stream, const u1 &num ) const;
00032     void writeu2( std::ofstream &stream, const u2 &num ) const;
00033     void writeu4( std::ofstream &stream, const u4 &num ) const;
00034 
00035 private:
00036     u2 u2ToBigEndian( u2 num ) const;
00037     u4 u4ToBigEndian( u4 num ) const;
00038 };
00039 
00040 } // end namespace
00041 
00042 #endif // CLASSWRITERBASE_HPP

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