00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef SUBFILEINFO_H
00016 #define SUBFILEINFO_H
00017
00018 #include "pandabase.h"
00019 #include "fileReference.h"
00020 #include "pointerTo.h"
00021
00022
00023
00024
00025
00026
00027
00028
00029 class EXPCL_PANDAEXPRESS SubfileInfo {
00030 PUBLISHED:
00031 INLINE SubfileInfo();
00032 INLINE SubfileInfo(const FileReference *file, streampos start, streamsize size);
00033 INLINE SubfileInfo(const Filename &filename, streampos start, streamsize size);
00034 INLINE SubfileInfo(const SubfileInfo ©);
00035 INLINE void operator = (const SubfileInfo ©);
00036
00037 INLINE bool is_empty() const;
00038
00039 INLINE const FileReference *get_file() const;
00040 INLINE const Filename &get_filename() const;
00041 INLINE streampos get_start() const;
00042 INLINE streamsize get_size() const;
00043
00044 void output(ostream &out) const;
00045
00046 private:
00047 CPT(FileReference) _file;
00048 streampos _start;
00049 streamsize _size;
00050 };
00051
00052 INLINE ostream &operator << (ostream &out, const SubfileInfo &info);
00053
00054 #include "subfileInfo.I"
00055
00056 #endif