1 /* -----------------------------------------------------------------------------
2 * See the LICENSE file for information on copyright, usage and redistribution
3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
7 * This file contains support for director classes so that C# proxy
8 * methods can be called from C++.
9 * ----------------------------------------------------------------------------- */
13 #if defined(DEBUG_DIRECTOR_OWNED)
19 /* Director base class - not currently used in C# directors */
23 /* Base class for director exceptions */
24 class DirectorException {
29 DirectorException(const char* msg) : swig_msg(msg) {
31 DirectorException(const std::string &msg) : swig_msg(msg) {
33 const std::string& what() const {
36 virtual ~DirectorException() {
40 /* Pure virtual method exception */
41 class DirectorPureVirtualException : public Swig::DirectorException {
43 DirectorPureVirtualException(const char* msg) : DirectorException(std::string("Attempt to invoke pure virtual method ") + msg) {
48 #endif /* __cplusplus */