New bitOp factories and things like that
This commit is contained in:
parent
a86873dcbf
commit
9860e201f2
8 changed files with 435 additions and 19 deletions
|
|
@ -41,7 +41,7 @@ public:
|
|||
@throw runtime_exception if the object type is not known
|
||||
*/
|
||||
virtual eoOp<EOT>* make(istream& _is) {
|
||||
eoOp<EOT> * opPtr;
|
||||
eoOp<EOT> * opPtr = NULL;
|
||||
string objectTypeStr;
|
||||
_is >> objectTypeStr;
|
||||
if ( objectTypeStr == "eoDup") {
|
||||
|
|
@ -57,7 +57,7 @@ public:
|
|||
opPtr = new eoXOver2<EOT>( );
|
||||
}
|
||||
if ( !opPtr ) {
|
||||
throw runtime_error( "Incorrect selector type" );
|
||||
throw objectTypeStr;
|
||||
}
|
||||
return opPtr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue