00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef EGGFILENAMENODE_H
00020 #define EGGFILENAMENODE_H
00021
00022 #include <pandabase.h>
00023
00024 #include "eggNode.h"
00025 #include <filename.h>
00026
00027
00028
00029
00030
00031
00032
00033
00034 class EXPCL_PANDAEGG EggFilenameNode : public EggNode {
00035 public:
00036 INLINE EggFilenameNode();
00037 INLINE EggFilenameNode(const string &node_name, const Filename &filename);
00038 INLINE EggFilenameNode(const EggFilenameNode ©);
00039 INLINE EggFilenameNode &operator = (const EggFilenameNode ©);
00040
00041 virtual string get_default_extension() const;
00042
00043 INLINE const Filename &get_filename() const;
00044 INLINE void set_filename(const Filename &filename);
00045
00046 INLINE const Filename &get_fullpath() const;
00047 INLINE void set_fullpath(const Filename &fullpath);
00048
00049 private:
00050 Filename _filename;
00051 Filename _fullpath;
00052
00053 public:
00054 static TypeHandle get_class_type() {
00055 return _type_handle;
00056 }
00057 static void init_type() {
00058 EggNode::init_type();
00059 register_type(_type_handle, "EggFilenameNode",
00060 EggNode::get_class_type());
00061 }
00062 virtual TypeHandle get_type() const {
00063 return get_class_type();
00064 }
00065 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00066
00067 private:
00068 static TypeHandle _type_handle;
00069 };
00070
00071 #include "eggFilenameNode.I"
00072
00073 #endif