open_toontown_panda3d/dtool/src/interrogatedb/interrogateComponent.h

64 lines
1.7 KiB
C++

// Filename: interrogateComponent.h
// Created by: drose (08Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef INTERROGATECOMPONENT_H
#define INTERROGATECOMPONENT_H
#include "dtoolbase.h"
#include "interrogate_interface.h"
#include "interrogate_request.h"
#include <vector>
class IndexRemapper;
////////////////////////////////////////////////////////////////////
// Class : InterrogateComponent
// Description : The base class for things that are part of the
// interrogate database. This includes types,
// functions, and function wrappers.
////////////////////////////////////////////////////////////////////
class EXPCL_DTOOLCONFIG InterrogateComponent {
public:
INLINE InterrogateComponent(InterrogateModuleDef *def = NULL);
INLINE InterrogateComponent(const InterrogateComponent &copy);
INLINE void operator = (const InterrogateComponent &copy);
INLINE bool has_library_name() const;
INLINE const char *get_library_name() const;
INLINE bool has_module_name() const;
INLINE const char *get_module_name() const;
INLINE bool has_name() const;
INLINE const string &get_name() const;
void output(ostream &out) const;
void input(istream &in);
private:
InterrogateModuleDef *_def;
string _name;
friend class InterrogateBuilder;
friend class FunctionRemap;
};
#include "interrogateComponent.I"
#endif