15 #ifndef EGGFILENAMENODE_H
16 #define EGGFILENAMENODE_H
18 #include "pandabase.h"
33 INLINE EggFilenameNode(
const string &node_name,
const Filename &filename);
34 INLINE EggFilenameNode(
const EggFilenameNode ©);
35 INLINE EggFilenameNode &operator = (
const EggFilenameNode ©);
37 virtual string get_default_extension()
const;
39 INLINE
const Filename &get_filename()
const;
40 INLINE
void set_filename(
const Filename &filename);
42 INLINE
const Filename &get_fullpath()
const;
43 INLINE
void set_fullpath(
const Filename &fullpath);
48 bool operator () (
const EggFilenameNode *a,
const EggFilenameNode *b)
const {
61 static void init_type() {
63 register_type(_type_handle,
"EggFilenameNode",
64 EggNode::get_class_type());
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
75 #include "eggFilenameNode.I"
This is an egg node that contains a filename.
The name of a file, such as a texture file or an Egg file.
const Filename & get_filename() const
Returns a nonmodifiable reference to the filename.
string get_basename() const
Returns the basename part of the filename.
A base class for things that may be directly added into the egg hierarchy.
TypeHandle is the identifier used to differentiate C++ class types.