00001 // Filename: eggSingleBase.h 00002 // Created by: drose (21Jul03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGSINGLEBASE_H 00016 #define EGGSINGLEBASE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "eggBase.h" 00021 #include "coordinateSystem.h" 00022 #include "eggData.h" 00023 #include "pointerTo.h" 00024 00025 class EggReader; 00026 class EggWriter; 00027 class EggNode; 00028 class PathReplace; 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Class : EggSingleBase 00032 // Description : This specialization of EggBase is intended for 00033 // programs that read and/or write a single egg file. 00034 // (See EggMultiBase for programs that operate on 00035 // multiple egg files at once.) 00036 // 00037 // This is just a base class; see EggReader, EggWriter, 00038 // or EggFilter according to your particular I/O needs. 00039 //////////////////////////////////////////////////////////////////// 00040 class EggSingleBase : public EggBase { 00041 public: 00042 EggSingleBase(); 00043 00044 virtual EggReader *as_reader(); 00045 virtual EggWriter *as_writer(); 00046 00047 protected: 00048 virtual bool post_command_line(); 00049 00050 protected: 00051 PT(EggData) _data; 00052 }; 00053 00054 #endif 00055 00056