- Timestamp:
- 02/02/09 14:47:34 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/UI/UIbuilder_test.cpp
r257 r260 22 22 UItest():UIbuilder("test"){} 23 23 bdmroot* build(Setting &S) const{ 24 try{25 24 int a=S["a"]; 26 25 string St; … … 28 27 cls* tmp = new cls(a,St); 29 28 return tmp; 30 }31 catch (...){32 it_error(string(S.getPath()) + " is not a valid test UI");33 }34 29 } 35 30 }; … … 39 34 UItest2():UIbuilder("test2"){} 40 35 bdmroot* build(Setting &S) const{ 41 try{42 36 int a=S["a"]; 43 37 string St; 44 38 S.lookupValue("S",St); 45 39 return new cls2(a,St); 46 }47 catch (...){48 it_error(string(S.getPath()) + " is not a valid test UI");49 }50 40 } 51 41 int no(){return 2;}