14#ifndef EGGFILENAMENODE_H
15#define EGGFILENAMENODE_H
27class EXPCL_PANDA_EGG EggFilenameNode :
public EggNode {
29 INLINE EggFilenameNode();
30 INLINE
explicit EggFilenameNode(
const std::string &node_name,
const Filename &filename);
31 INLINE EggFilenameNode(
const EggFilenameNode ©);
32 INLINE EggFilenameNode &operator = (
const EggFilenameNode ©);
37 INLINE
void set_filename(
const Filename &filename);
45 bool operator () (
const EggFilenameNode *a,
const EggFilenameNode *b)
const {
58 static void init_type() {
61 EggNode::get_class_type());
63 virtual TypeHandle get_type()
const {
64 return get_class_type();
66 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 static TypeHandle _type_handle;
void set_fullpath(const Filename &fullpath)
Records the full pathname to the file, for the benefit of get_fullpath().
const Filename & get_filename() const
Returns a nonmodifiable reference to the filename.
const Filename & get_fullpath() const
Returns the full pathname to the file, if it is known; otherwise, returns the same thing as get_filen...
virtual std::string get_default_extension() const
Returns the default extension for this filename type.
The name of a file, such as a texture file or an Egg file.
std::string get_basename() const
Returns the basename part of the filename.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...