26 EggExternalReference::
27 EggExternalReference(
const std::string &node_name,
const std::string &filename)
34 EggExternalReference::
44 EggFilenameNode::operator = (copy);
52 write(std::ostream &out,
int indent_level)
const {
55 indent(out, indent_level) <<
"}\n";
63 return std::string(
"egg");
const Filename & get_filename() const
Returns a nonmodifiable reference to the filename.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void write_header(std::ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
This is an egg node that contains a filename.
ostream & enquote_string(ostream &out, const string &str, int indent_level, bool always_quote)
Writes the string to the indicated output stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual void write(std::ostream &out, int indent_level) const
Writes the reference to the indicated output stream in Egg format.
Defines a reference to another egg file which should be inserted at this point.
virtual std::string get_default_extension() const
Returns the default extension for this filename type.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.