/[ascend]/trunk/pygtk/instance.cpp
ViewVC logotype

Diff of /trunk/pygtk/instance.cpp

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

revision 875 by johnpye, Mon Sep 11 08:31:21 2006 UTC revision 876 by johnpye, Sat Oct 7 06:55:11 2006 UTC
# Line 62  Instanc::Instanc(Instance *i, const SymC Line 62  Instanc::Instanc(Instance *i, const SymC
62          ss << "Attempted to create Instance object will null 'Instance *', name " << name;          ss << "Attempted to create Instance object will null 'Instance *', name " << name;
63          throw runtime_error(ss.str());          throw runtime_error(ss.str());
64      }*/      }*/
65      cerr << "A NEW INSTANCE " << name << endl;      //cerr << "A NEW INSTANCE " << name << endl;
66  }  }
67    
68  Instanc::Instanc(const Instanc&old) : i(old.i), name(old.name){  Instanc::Instanc(const Instanc&old) : i(old.i), name(old.name){
# Line 554  Instanc::getChildren() Line 554  Instanc::getChildren()
554  Instanc  Instanc
555  Instanc::getChild(const SymChar &name) const{  Instanc::getChild(const SymChar &name) const{
556      struct Instance *c = ChildByChar(i,name.getInternalType());      struct Instance *c = ChildByChar(i,name.getInternalType());
557      if(c==NULL)throw runtime_error("Child not found");      stringstream ss;
558      return Instanc(c);      if(c==NULL){
559            ss << "Child '" << name << "'  not found in " << getName();
560            throw runtime_error(ss.str());
561        }
562        return Instanc(c,name);
563  }  }
564    
565  Plot  Plot

Legend:
Removed from v.875  
changed lines
  Added in v.876

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