/[ascend]/trunk/pygtk/interface/library.cpp
ViewVC logotype

Diff of /trunk/pygtk/interface/library.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 179 by johnpye, Tue Jan 10 04:27:34 2006 UTC revision 180 by johnpye, Thu Jan 12 03:20:58 2006 UTC
# Line 63  Library::~Library(){ Line 63  Library::~Library(){
63      // ... need to use some kind of reference counting before you can do that...      // ... need to use some kind of reference counting before you can do that...
64  }  }
65    
66    /**
67        Load an ASCEND model file into the Library. It will be parsed such that
68        its types will be visible to Library::findType.
69    
70        @param filename Filename, will be searched for relative to ASCENDLIBRARY environment
71            variable, if necessary.
72    */
73  void  void
74  Library::load(const char *filename){  Library::load(const char *filename){
75    
# Line 119  Library::load(const char *filename){ Line 126  Library::load(const char *filename){
126      std::cerr << "Note: " << gl_length(l) << " library entries loaded from '" << filename << "'" << std::endl;      std::cerr << "Note: " << gl_length(l) << " library entries loaded from '" << filename << "'" << std::endl;
127  }  }
128    
129    /**
130        Return a vector of all the Modules which have been loaded into
131        the current library.
132    */
133  vector<Module>  vector<Module>
134  Library::getModules(){  Library::getModules(){
135      //cerr << "GET MODULES\n" << endl;      //cerr << "GET MODULES\n" << endl;
# Line 141  Library::getModules(){ Line 152  Library::getModules(){
152      return v;      return v;
153  }  }
154    
155    /**
156        Output to stderr the names of the modules loaded into the current Library.
157    */
158  void  void
159  Library::listModules(const int &module_type) const{  Library::listModules(const int &module_type) const{
160    
# Line 224  Library::getExtFns(){ Line 238  Library::getExtFns(){
238      return extfn_vector;      return extfn_vector;
239  }  }
240    
241    /**
242        This method exists only to allow the TraverseExtFuncLibrary function
243        to make callbacks to the Library class from C.
244    
245        @NOTE there might be issues with C/C++ linking here?
246    */
247  void  void
248  Library::extFuncTraverse(void *a1, void *a2){  Library::extFuncTraverse(void *a1, void *a2){
249      Library *self = (Library *)a2;      Library *self = (Library *)a2;

Legend:
Removed from v.179  
changed lines
  Added in v.180

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22