// EdoHandle_t.cxx #include "EdoHandleTest.h" using hes::EdoType; using hes::FileType; int main() { string line = "--------------------------------------"; cout << line << endl; { EdoHandleTest han; cout << han << endl; assert( ! han.is_valid() ); cout << line << endl; } EdoType etyp(0x12345678L); EdoType::register_type(etyp, "Int"); cout << etyp << endl; assert( etyp.is_valid() ); FileType ftyp = FileType::REFERENCE; cout << ftyp << endl; assert( ftyp.is_valid() ); int myint = 123; const int* pedo = &myint; cout << pedo << endl; cout << line << endl; { EdoHandleTest han(etyp, ftyp); cout << han << endl; assert( han.is_valid() ); cout << line << endl; } { EdoHandleTest han(etyp, pedo); cout << han << endl; assert( han.is_valid() ); cout << line << endl; } { EdoHandleTest han(etyp, ftyp, pedo); cout << han << endl; assert( han.is_valid() ); cout << line << endl; } return 0; }