35class EXPCL_DIRECT_DCPARSER DCParameter :
public DCField {
38 DCParameter(
const DCParameter ©);
40 virtual ~DCParameter();
43 virtual DCParameter *as_parameter();
44 virtual const DCParameter *as_parameter()
const;
54 virtual DCParameter *make_copy()
const=0;
55 virtual bool is_valid()
const=0;
63 virtual void output(std::ostream &out,
bool brief)
const;
64 virtual void write(std::ostream &out,
bool brief,
int indent_level)
const;
65 virtual void output_instance(std::ostream &out,
bool brief,
const std::string &prename,
66 const std::string &name,
const std::string &postname)
const=0;
67 virtual void write_instance(std::ostream &out,
bool brief,
int indent_level,
68 const std::string &prename,
const std::string &name,
69 const std::string &postname)
const;
71 const std::string &name,
const std::string &postname)
const;
73 const std::string &prename,
const std::string &name,
74 const std::string &postname)
const;
This represents an array of some other kind of object, meaning this parameter type accepts an arbitra...
This represents a class (or struct) object used as a parameter itself.
void write(std::ostream &out, int indent_level) const
Write a string representation of this instance to <out>.
virtual void generate_hash(HashGenerator &hashgen) const
Accumulates the properties of this field into the hash.
void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual void write_instance(std::ostream &out, bool brief, int indent_level, const std::string &prename, const std::string &name, const std::string &postname) const
Formats the parameter in the C++-like dc syntax as a typename and identifier.
void write_typedef_name(std::ostream &out, bool brief, int indent_level, const std::string &prename, const std::string &name, const std::string &postname) const
Formats the instance like write_instance, but uses the typedef name instead.
const DCTypedef * get_typedef() const
If this type has been referenced from a typedef, returns the DCTypedef instance, or NULL if the type ...
void output_typedef_name(std::ostream &out, bool brief, const std::string &prename, const std::string &name, const std::string &postname) const
Formats the instance like output_instance, but uses the typedef name instead.
virtual DCParameter * append_array_specification(const DCUnsignedIntRange &size)
Returns the type represented by this_type[size].
void set_typedef(const DCTypedef *dtypedef)
Records the DCTypedef object that generated this parameter.
This is the most fundamental kind of parameter type: a single number or string, one of the DCSubatomi...
This represents a switch object used as a parameter itself, which packs the appropriate fields of the...
This represents a single typedef declaration in the dc file.
This class generates an arbitrary hash number from a sequence of ints.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.