00001 // Filename: interrogateComponent.h 00002 // Created by: drose (08Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef INTERROGATECOMPONENT_H 00020 #define INTERROGATECOMPONENT_H 00021 00022 #include <dtoolbase.h> 00023 00024 #include "interrogate_interface.h" 00025 #include "interrogate_request.h" 00026 00027 #include <vector> 00028 00029 class IndexRemapper; 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Class : InterrogateComponent 00033 // Description : The base class for things that are part of the 00034 // interrogate database. This includes types, 00035 // functions, and function wrappers. 00036 //////////////////////////////////////////////////////////////////// 00037 class EXPCL_DTOOLCONFIG InterrogateComponent { 00038 public: 00039 INLINE InterrogateComponent(InterrogateModuleDef *def = NULL); 00040 INLINE InterrogateComponent(const InterrogateComponent ©); 00041 INLINE void operator = (const InterrogateComponent ©); 00042 00043 INLINE bool has_library_name() const; 00044 INLINE const char *get_library_name() const; 00045 00046 INLINE bool has_module_name() const; 00047 INLINE const char *get_module_name() const; 00048 00049 INLINE bool has_name() const; 00050 INLINE const string &get_name() const; 00051 00052 void output(ostream &out) const; 00053 void input(istream &in); 00054 00055 private: 00056 InterrogateModuleDef *_def; 00057 string _name; 00058 00059 friend class InterrogateBuilder; 00060 friend class FunctionRemap; 00061 }; 00062 00063 #include "interrogateComponent.I" 00064 00065 #endif 00066 00067