summaryrefslogtreecommitdiff
path: root/Source/Modules/swigmod.h
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2004-12-06 22:53:09 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2004-12-06 22:53:09 +0000
commit347f342fab8a9bd2307b83038268e049ffa99a6c (patch)
treee32e7d78eb3790ca80a3e1e970962f9383fd9256 /Source/Modules/swigmod.h
parent922d7d4cfea9df7eca94ee126ddcc190a3b8479f (diff)
downloadswig-347f342fab8a9bd2307b83038268e049ffa99a6c.tar.gz
tidyup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Modules/swigmod.h')
-rw-r--r--Source/Modules/swigmod.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/Modules/swigmod.h b/Source/Modules/swigmod.h
index 923fff796..6687bc1e9 100644
--- a/Source/Modules/swigmod.h
+++ b/Source/Modules/swigmod.h
@@ -60,7 +60,8 @@ extern String *argc_template_string;
class Dispatcher {
public:
-
+
+ Dispatcher() : cplus_mode(PUBLIC) {}
virtual int emit_one(Node *n);
virtual int emit_children(Node *n);
virtual int defaultHandler(Node *n);
@@ -101,6 +102,11 @@ class Dispatcher {
virtual int usingDeclaration(Node *n);
virtual int namespaceDeclaration(Node *n);
virtual int templateDeclaration(Node *n);
+
+ enum AccessMode { PUBLIC, PRIVATE, PROTECTED };
+
+protected:
+ AccessMode cplus_mode;
};
/************************************************************************
@@ -243,7 +249,7 @@ public:
/* Set overload variable templates argc and argv */
void setOverloadResolutionTemplates(String *argc, String *argv);
- protected:
+protected:
/* Allow multiple-input typemaps */
void allow_multiple_input(int val = 1);
@@ -286,14 +292,13 @@ public:
/* Director language module */
int director_language;
- private:
+private:
Hash *symbols;
Hash *classtypes;
Hash *enumtypes;
int overloading;
int multiinput;
int directors;
-
};
int SWIG_main(int, char **, Language *);