New bitOp factories and things like that

This commit is contained in:
jmerelo 1999-02-09 17:31:16 +00:00
commit 9860e201f2
8 changed files with 435 additions and 19 deletions

View file

@ -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;
}