15 #include "eggExternalReference.h"
16 #include "eggMiscFuncs.h"
19 #include "string_utils.h"
29 EggExternalReference::
30 EggExternalReference(
const string &node_name,
const string &filename)
39 EggExternalReference::
51 EggFilenameNode::operator = (copy);
62 write(ostream &out,
int indent_level)
const {
64 enquote_string(out,
get_filename(), indent_level + 2) <<
"\n";
65 indent(out, indent_level) <<
"}\n";
void write_header(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.
virtual string get_default_extension() const
Returns the default extension for this filename type.
const Filename & get_filename() const
Returns a nonmodifiable reference to the filename.
virtual void write(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.
TypeHandle is the identifier used to differentiate C++ class types.