1*565d668cSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*565d668cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*565d668cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*565d668cSAndrew Rist * distributed with this work for additional information 6*565d668cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*565d668cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*565d668cSAndrew Rist * "License"); you may not use this file except in compliance 9*565d668cSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*565d668cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*565d668cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*565d668cSAndrew Rist * software distributed under the License is distributed on an 15*565d668cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*565d668cSAndrew Rist * KIND, either express or implied. See the License for the 17*565d668cSAndrew Rist * specific language governing permissions and limitations 18*565d668cSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*565d668cSAndrew Rist *************************************************************/ 21*565d668cSAndrew Rist 22*565d668cSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _RTL_TRES_HXX_ 25cdf0e10cSrcweir #define _RTL_TRES_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <rtl/tres.h> 29cdf0e10cSrcweir 30cdf0e10cSrcweir //#include <stdarg.h> 31cdf0e10cSrcweir 32cdf0e10cSrcweir // <namespace_rtl> 33cdf0e10cSrcweir namespace rtl 34cdf0e10cSrcweir { 35cdf0e10cSrcweir /*==========================================================================*/ 36cdf0e10cSrcweir 37cdf0e10cSrcweir // <class_TestResult> 38cdf0e10cSrcweir class TestResult 39cdf0e10cSrcweir { 40cdf0e10cSrcweir // pointer to testresult structure 41cdf0e10cSrcweir rtl_TestResult* pData; 42cdf0e10cSrcweir 43cdf0e10cSrcweir // <private_ctors> 44cdf0e10cSrcweir TestResult(); 45cdf0e10cSrcweir TestResult( const TestResult& oRes ); 46cdf0e10cSrcweir // </private_ctors> 47cdf0e10cSrcweir 48cdf0e10cSrcweir public: 49cdf0e10cSrcweir 50cdf0e10cSrcweir 51cdf0e10cSrcweir // <public_ctors> TestResult(const sal_Char * meth,sal_uInt32 flags=0)52cdf0e10cSrcweir TestResult( const sal_Char* meth, sal_uInt32 flags = 0 ) 53cdf0e10cSrcweir { 54cdf0e10cSrcweir pData = rtl_tres_create( meth, flags ); 55cdf0e10cSrcweir } // </public_ctors> 56cdf0e10cSrcweir 57cdf0e10cSrcweir // <dtor> ~TestResult()58cdf0e10cSrcweir ~TestResult() 59cdf0e10cSrcweir { 60cdf0e10cSrcweir rtl_tres_destroy( pData ); 61cdf0e10cSrcweir } 62cdf0e10cSrcweir // </dtor> 63cdf0e10cSrcweir 64cdf0e10cSrcweir // <public_methods> getData()65cdf0e10cSrcweir rtl_TestResult* getData() 66cdf0e10cSrcweir { 67cdf0e10cSrcweir return pData; 68cdf0e10cSrcweir } 69cdf0e10cSrcweir // <method_state> state(sal_Bool tst_state,const sal_Char * msg=0,const sal_Char * sub=0,sal_Bool verbose=sal_False)70cdf0e10cSrcweir sal_Bool state( 71cdf0e10cSrcweir sal_Bool tst_state, 72cdf0e10cSrcweir const sal_Char* msg = 0, 73cdf0e10cSrcweir const sal_Char* sub = 0, 74cdf0e10cSrcweir sal_Bool verbose = sal_False 75cdf0e10cSrcweir ) 76cdf0e10cSrcweir { 77cdf0e10cSrcweir return pData->pFuncs->state_( pData, tst_state, msg, sub, verbose ); 78cdf0e10cSrcweir } // </method_state> 79cdf0e10cSrcweir end(sal_Char * msg=0)80cdf0e10cSrcweir void end( sal_Char* msg = 0 ) 81cdf0e10cSrcweir { 82cdf0e10cSrcweir pData->pFuncs->end_( pData, msg ); 83cdf0e10cSrcweir } // </method_state> 84cdf0e10cSrcweir }; // </class_TestResult> 85cdf0e10cSrcweir 86cdf0e10cSrcweir } // </namespace_rtl> 87cdf0e10cSrcweir #endif 88cdf0e10cSrcweir 89cdf0e10cSrcweir 90cdf0e10cSrcweir 91cdf0e10cSrcweir 92cdf0e10cSrcweir 93cdf0e10cSrcweir 94cdf0e10cSrcweir 95cdf0e10cSrcweir 96cdf0e10cSrcweir 97cdf0e10cSrcweir 98cdf0e10cSrcweir 99cdf0e10cSrcweir 100cdf0e10cSrcweir 101cdf0e10cSrcweir 102cdf0e10cSrcweir 103cdf0e10cSrcweir 104cdf0e10cSrcweir 105cdf0e10cSrcweir 106cdf0e10cSrcweir 107cdf0e10cSrcweir 108cdf0e10cSrcweir 109