Panda3D
|
00001 // Filename: interrogateMakeSeq.h 00002 // Created by: drose (15Sep09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef INTERROGATEMAKESEQ_H 00016 #define INTERROGATEMAKESEQ_H 00017 00018 #include "dtoolbase.h" 00019 00020 #include "interrogateComponent.h" 00021 00022 class IndexRemapper; 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : InterrogateMakeSeq 00026 // Description : Represents a synthetic method created via the 00027 // MAKE_SEQ() macro. 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_DTOOLCONFIG InterrogateMakeSeq : public InterrogateComponent { 00030 public: 00031 INLINE InterrogateMakeSeq(InterrogateModuleDef *def = NULL); 00032 INLINE InterrogateMakeSeq(const InterrogateMakeSeq ©); 00033 INLINE void operator = (const InterrogateMakeSeq ©); 00034 00035 INLINE TypeIndex get_class() const; 00036 INLINE const string &get_seq_name() const; 00037 INLINE const string &get_num_name() const; 00038 INLINE const string &get_element_name() const; 00039 00040 void output(ostream &out) const; 00041 void input(istream &in); 00042 00043 void remap_indices(const IndexRemapper &remap); 00044 00045 private: 00046 TypeIndex _class; 00047 string _seq_name; 00048 string _num_name; 00049 string _element_name; 00050 00051 friend class InterrogateBuilder; 00052 }; 00053 00054 INLINE ostream &operator << (ostream &out, const InterrogateMakeSeq &make_seq); 00055 INLINE istream &operator >> (istream &in, InterrogateMakeSeq &make_seq); 00056 00057 #include "interrogateMakeSeq.I" 00058 00059 #endif