|
|
@@ -43,7 +43,7 @@ class DCParameter;
|
|
|
*/
|
|
|
class DCClass : public DCDeclaration {
|
|
|
public:
|
|
|
- DCClass(DCFile *dc_file, const string &name,
|
|
|
+ DCClass(DCFile *dc_file, const std::string &name,
|
|
|
bool is_struct, bool bogus_class);
|
|
|
~DCClass();
|
|
|
|
|
|
@@ -53,7 +53,7 @@ PUBLISHED:
|
|
|
|
|
|
INLINE DCFile *get_dc_file() const;
|
|
|
|
|
|
- INLINE const string &get_name() const;
|
|
|
+ INLINE const std::string &get_name() const;
|
|
|
INLINE int get_number() const;
|
|
|
|
|
|
int get_num_parents() const;
|
|
|
@@ -65,7 +65,7 @@ PUBLISHED:
|
|
|
int get_num_fields() const;
|
|
|
DCField *get_field(int n) const;
|
|
|
|
|
|
- DCField *get_field_by_name(const string &name) const;
|
|
|
+ DCField *get_field_by_name(const std::string &name) const;
|
|
|
DCField *get_field_by_index(int index_number) const;
|
|
|
|
|
|
int get_num_inherited_fields() const;
|
|
|
@@ -78,7 +78,7 @@ PUBLISHED:
|
|
|
INLINE void start_generate();
|
|
|
INLINE void stop_generate();
|
|
|
|
|
|
- virtual void output(ostream &out) const;
|
|
|
+ virtual void output(std::ostream &out) const;
|
|
|
|
|
|
#ifdef HAVE_PYTHON
|
|
|
bool has_class_def() const;
|
|
|
@@ -94,9 +94,9 @@ PUBLISHED:
|
|
|
void receive_update_all_required(PyObject *distobj, DatagramIterator &di) const;
|
|
|
void receive_update_other(PyObject *distobj, DatagramIterator &di) const;
|
|
|
|
|
|
- void direct_update(PyObject *distobj, const string &field_name,
|
|
|
- const string &value_blob);
|
|
|
- void direct_update(PyObject *distobj, const string &field_name,
|
|
|
+ void direct_update(PyObject *distobj, const std::string &field_name,
|
|
|
+ const std::string &value_blob);
|
|
|
+ void direct_update(PyObject *distobj, const std::string &field_name,
|
|
|
const Datagram &datagram);
|
|
|
bool pack_required_field(Datagram &datagram, PyObject *distobj,
|
|
|
const DCField *field) const;
|
|
|
@@ -105,11 +105,11 @@ PUBLISHED:
|
|
|
|
|
|
|
|
|
|
|
|
- Datagram client_format_update(const string &field_name,
|
|
|
+ Datagram client_format_update(const std::string &field_name,
|
|
|
DOID_TYPE do_id, PyObject *args) const;
|
|
|
- Datagram ai_format_update(const string &field_name, DOID_TYPE do_id,
|
|
|
+ Datagram ai_format_update(const std::string &field_name, DOID_TYPE do_id,
|
|
|
CHANNEL_TYPE to_id, CHANNEL_TYPE from_id, PyObject *args) const;
|
|
|
- Datagram ai_format_update_msg_type(const string &field_name, DOID_TYPE do_id,
|
|
|
+ Datagram ai_format_update_msg_type(const std::string &field_name, DOID_TYPE do_id,
|
|
|
CHANNEL_TYPE to_id, CHANNEL_TYPE from_id, int msg_type, PyObject *args) const;
|
|
|
Datagram ai_format_generate(PyObject *distobj, DOID_TYPE do_id, ZONEID_TYPE parent_id, ZONEID_TYPE zone_id,
|
|
|
CHANNEL_TYPE district_channel_id, CHANNEL_TYPE from_channel_id,
|
|
|
@@ -120,10 +120,10 @@ PUBLISHED:
|
|
|
#endif
|
|
|
|
|
|
public:
|
|
|
- virtual void output(ostream &out, bool brief) const;
|
|
|
- virtual void write(ostream &out, bool brief, int indent_level) const;
|
|
|
- void output_instance(ostream &out, bool brief, const string &prename,
|
|
|
- const string &name, const string &postname) const;
|
|
|
+ virtual void output(std::ostream &out, bool brief) const;
|
|
|
+ virtual void write(std::ostream &out, bool brief, int indent_level) const;
|
|
|
+ void output_instance(std::ostream &out, bool brief, const std::string &prename,
|
|
|
+ const std::string &name, const std::string &postname) const;
|
|
|
void generate_hash(HashGenerator &hashgen) const;
|
|
|
void clear_inherited_fields();
|
|
|
void rebuild_inherited_fields();
|
|
|
@@ -133,7 +133,7 @@ public:
|
|
|
void set_number(int number);
|
|
|
|
|
|
private:
|
|
|
- void shadow_inherited_field(const string &name);
|
|
|
+ void shadow_inherited_field(const std::string &name);
|
|
|
|
|
|
#ifdef WITHIN_PANDA
|
|
|
PStatCollector _class_update_pcollector;
|
|
|
@@ -144,7 +144,7 @@ private:
|
|
|
|
|
|
DCFile *_dc_file;
|
|
|
|
|
|
- string _name;
|
|
|
+ std::string _name;
|
|
|
bool _is_struct;
|
|
|
bool _bogus_class;
|
|
|
int _number;
|
|
|
@@ -157,7 +157,7 @@ private:
|
|
|
typedef pvector<DCField *> Fields;
|
|
|
Fields _fields, _inherited_fields;
|
|
|
|
|
|
- typedef pmap<string, DCField *> FieldsByName;
|
|
|
+ typedef pmap<std::string, DCField *> FieldsByName;
|
|
|
FieldsByName _fields_by_name;
|
|
|
|
|
|
typedef pmap<int, DCField *> FieldsByIndex;
|