Parent Directory
|
Revision Log
Adding 'NOTES' support to C++ interface. 'johnpye/thermalequilibrium2.a4c' is the example case. listnotes.py performs listing via a python external script method. annotation.h and annotation.cpp implement the C++ wrapper referenced by SWIG. library.{h,cpp} modified to provide access to the AnnotationDatabase. Typemapping modified in ascpy.i in attempt to get a more maintainable wrapping. Added annotation.cpp to build. Updated copyright header and formatting of notate.{c,h}. Improved ErrMsg_BracesEOF error message fn. Updated copyright header and formatting of braced.{c,h} Some misc debug output removed esp in simulation.cpp, conopt.c, importhandler.c.
1 | #ifndef ASCXX_ANNOTATION_H |
2 | #define ASCXX_ANNOTATION_H |
3 | |
4 | #include "symchar.h" |
5 | #include "type.h" |
6 | |
7 | #include <vector> |
8 | |
9 | class Annotation{ |
10 | private: |
11 | struct Note *n; |
12 | public: |
13 | Annotation(); |
14 | Annotation(struct Note *); |
15 | ~Annotation(); |
16 | |
17 | const char *getId() const; |
18 | const char *getMethod() const; |
19 | const SymChar getType() const; |
20 | const char *getFilename() const; |
21 | const int getLineNumber() const; |
22 | const char *getText() const; |
23 | const int getDataType() const; |
24 | //const void *getUserData(const int &datatype) const; |
25 | }; |
26 | |
27 | class AnnotationDatabase{ |
28 | private: |
29 | const symchar *dbid; |
30 | public: |
31 | AnnotationDatabase(const SymChar &dbid); |
32 | std::vector<Annotation> getNotes(const Type &type, const SymChar *lang=NULL |
33 | , const SymChar *id=NULL, const SymChar *method=NULL, const int flag=0 |
34 | ); |
35 | }; |
36 | |
37 | #endif |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |