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){ |
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 |