Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SHOrderedData.h

Go to the documentation of this file.
00001 /* Copyright (C) 2000 KOM/Darmstadt University of Technology 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, code may be used in unmodified form provided 00006 * that this copyright notice and this permission notice appear in 00007 * supporting documentation. 00008 * 00009 * This software is provided "as is" and without any express or implied 00010 * warranties, including, without limitation, the implied warranty of 00011 * fitness for a particular purpose. 00012 * 00013 * The code may be subjected to the GNU General Public License, Version 2, 00014 * and re-distributed under the terms of this license. 00015 * As a special exception, permission is granted to link this code 00016 * with the Qt library and distribute executables, as long as you 00017 * follow the requirements of the GNU GPL in regard to all of the 00018 * software in the executable aside from Qt. 00019 * 00020 * Commercial use other than under the terms of the GNU General Public 00021 * License is allowed only after express negotiation of conditions 00022 * with the authors. 00023 */ 00024 #ifndef MN_SH_ORDERED_DATA_H 00025 #define MN_SH_ORDERED_DATA_H 00026 00027 #include <sys/types.h> 00028 #include "var_type.h" 00029 00030 #include "SHData.h" 00031 #include "SHPlainData.h" 00032 00033 00034 class MNRope; 00035 00036 namespace SH 00037 { 00038 00053 class SHOrderedData : public SHPlainData 00054 { 00055 u_int64 _bytepos; 00056 public: 00059 SHOrderedData( MNRope*& data, bool consume_rope, u_int64 bytepos ); 00060 00064 SHOrderedData( const uchar_t* data, size_t len, u_int64 bytepos ); 00065 00068 virtual DataPtr clone(); 00069 00070 u_int64 get_bytepos() const; 00071 00074 virtual bool isOrderedData( ) const { return true; } 00075 }; 00076 00078 00079 }; // namespace SH 00080 00081 #endif /* MN_SH_ORDERED_DATA_H */ 00082

Generated on Sun Mar 6 13:35:50 2005 for Komssys by doxygen 1.3.8