author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 3 |
* All rights reserved. |
sl@0 | 4 |
* This component and the accompanying materials are made available |
sl@0 | 5 |
* under the terms of "Eclipse Public License v1.0" |
sl@0 | 6 |
* which accompanies this distribution, and is available |
sl@0 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 8 |
* |
sl@0 | 9 |
* Initial Contributors: |
sl@0 | 10 |
* Nokia Corporation - initial contribution. |
sl@0 | 11 |
* |
sl@0 | 12 |
* Contributors: |
sl@0 | 13 |
* |
sl@0 | 14 |
* Description: |
sl@0 | 15 |
* |
sl@0 | 16 |
*/ |
sl@0 | 17 |
|
sl@0 | 18 |
|
sl@0 | 19 |
|
sl@0 | 20 |
|
sl@0 | 21 |
#ifndef TIOSTREAMS_H |
sl@0 | 22 |
#define TIOSTREAMS_H |
sl@0 | 23 |
|
sl@0 | 24 |
// INCLUDES |
sl@0 | 25 |
#include <StifLogger.h> |
sl@0 | 26 |
#include <TestScripterInternal.h> |
sl@0 | 27 |
#include <StifTestModule.h> |
sl@0 | 28 |
|
sl@0 | 29 |
|
sl@0 | 30 |
// CONSTANTS |
sl@0 | 31 |
//const ?type ?constant_var = ?constant; |
sl@0 | 32 |
|
sl@0 | 33 |
// MACROS |
sl@0 | 34 |
//#define ?macro ?macro_def |
sl@0 | 35 |
// Logging path |
sl@0 | 36 |
_LIT( KtiostreamsLogPath, "\\logs\\testframework\\tiostreams\\" ); |
sl@0 | 37 |
// Log file |
sl@0 | 38 |
_LIT( KtiostreamsLogFile, "tiostreams.txt" ); |
sl@0 | 39 |
|
sl@0 | 40 |
// FUNCTION PROTOTYPES |
sl@0 | 41 |
//?type ?function_name(?arg_list); |
sl@0 | 42 |
|
sl@0 | 43 |
// FORWARD DECLARATIONS |
sl@0 | 44 |
//class ?FORWARD_CLASSNAME; |
sl@0 | 45 |
class Ctiostreams; |
sl@0 | 46 |
|
sl@0 | 47 |
// DATA TYPES |
sl@0 | 48 |
//enum ?declaration |
sl@0 | 49 |
//typedef ?declaration |
sl@0 | 50 |
//extern ?data_type; |
sl@0 | 51 |
|
sl@0 | 52 |
// CLASS DECLARATION |
sl@0 | 53 |
|
sl@0 | 54 |
/** |
sl@0 | 55 |
* Ctiostreams test class for STIF Test Framework TestScripter. |
sl@0 | 56 |
* ?other_description_lines |
sl@0 | 57 |
* |
sl@0 | 58 |
* @lib ?library |
sl@0 | 59 |
* @since ?Series60_version |
sl@0 | 60 |
*/ |
sl@0 | 61 |
NONSHARABLE_CLASS(Ctiostreams) : public CScriptBase |
sl@0 | 62 |
{ |
sl@0 | 63 |
public: // Constructors and destructor |
sl@0 | 64 |
|
sl@0 | 65 |
/** |
sl@0 | 66 |
* Two-phased constructor. |
sl@0 | 67 |
*/ |
sl@0 | 68 |
static Ctiostreams* NewL( CTestModuleIf& aTestModuleIf ); |
sl@0 | 69 |
|
sl@0 | 70 |
/** |
sl@0 | 71 |
* Destructor. |
sl@0 | 72 |
*/ |
sl@0 | 73 |
virtual ~Ctiostreams(); |
sl@0 | 74 |
|
sl@0 | 75 |
public: // New functions |
sl@0 | 76 |
|
sl@0 | 77 |
/** |
sl@0 | 78 |
* ?member_description. |
sl@0 | 79 |
* @since ?Series60_version |
sl@0 | 80 |
* @param ?arg1 ?description |
sl@0 | 81 |
* @return ?description |
sl@0 | 82 |
*/ |
sl@0 | 83 |
//?type ?member_function( ?type ?arg1 ); |
sl@0 | 84 |
|
sl@0 | 85 |
public: // Functions from base classes |
sl@0 | 86 |
|
sl@0 | 87 |
/** |
sl@0 | 88 |
* From CScriptBase Runs a script line. |
sl@0 | 89 |
* @since ?Series60_version |
sl@0 | 90 |
* @param aItem Script line containing method name and parameters |
sl@0 | 91 |
* @return Symbian OS error code |
sl@0 | 92 |
*/ |
sl@0 | 93 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
sl@0 | 94 |
|
sl@0 | 95 |
protected: // New functions |
sl@0 | 96 |
|
sl@0 | 97 |
/** |
sl@0 | 98 |
* ?member_description. |
sl@0 | 99 |
* @since ?Series60_version |
sl@0 | 100 |
* @param ?arg1 ?description |
sl@0 | 101 |
* @return ?description |
sl@0 | 102 |
*/ |
sl@0 | 103 |
//?type ?member_function( ?type ?arg1 ); |
sl@0 | 104 |
|
sl@0 | 105 |
protected: // Functions from base classes |
sl@0 | 106 |
|
sl@0 | 107 |
/** |
sl@0 | 108 |
* From ?base_class ?member_description |
sl@0 | 109 |
*/ |
sl@0 | 110 |
//?type ?member_function(); |
sl@0 | 111 |
|
sl@0 | 112 |
private: |
sl@0 | 113 |
|
sl@0 | 114 |
/** |
sl@0 | 115 |
* C++ default constructor. |
sl@0 | 116 |
*/ |
sl@0 | 117 |
Ctiostreams( CTestModuleIf& aTestModuleIf ); |
sl@0 | 118 |
|
sl@0 | 119 |
/** |
sl@0 | 120 |
* By default Symbian 2nd phase constructor is private. |
sl@0 | 121 |
*/ |
sl@0 | 122 |
void ConstructL(); |
sl@0 | 123 |
|
sl@0 | 124 |
// Prohibit copy constructor if not deriving from CBase. |
sl@0 | 125 |
// ?classname( const ?classname& ); |
sl@0 | 126 |
// Prohibit assigment operator if not deriving from CBase. |
sl@0 | 127 |
// ?classname& operator=( const ?classname& ); |
sl@0 | 128 |
|
sl@0 | 129 |
/** |
sl@0 | 130 |
* Frees all resources allocated from test methods. |
sl@0 | 131 |
* @since ?Series60_version |
sl@0 | 132 |
*/ |
sl@0 | 133 |
void Delete(); |
sl@0 | 134 |
|
sl@0 | 135 |
/** |
sl@0 | 136 |
* Test methods are listed below. |
sl@0 | 137 |
*/ |
sl@0 | 138 |
|
sl@0 | 139 |
/** |
sl@0 | 140 |
* Example test method. |
sl@0 | 141 |
* @since ?Series60_version |
sl@0 | 142 |
* @param aItem Script line containing parameters. |
sl@0 | 143 |
* @return Symbian OS error code. |
sl@0 | 144 |
*/ |
sl@0 | 145 |
|
sl@0 | 146 |
virtual TInt iofstreamL( CStifItemParser& aItem ); |
sl@0 | 147 |
virtual TInt stringbufL( CStifItemParser& aItem ); |
sl@0 | 148 |
virtual TInt stringstreamL( CStifItemParser& aItem ); |
sl@0 | 149 |
virtual TInt streambufL( CStifItemParser& aItem ); |
sl@0 | 150 |
virtual TInt ostreamL( CStifItemParser& aItem ); |
sl@0 | 151 |
virtual TInt istreamL( CStifItemParser& aItem ); |
sl@0 | 152 |
virtual TInt istringstreamL( CStifItemParser& aItem ); |
sl@0 | 153 |
virtual TInt ostringstreamL( CStifItemParser& aItem ); |
sl@0 | 154 |
virtual TInt ostreamiterators( CStifItemParser& aItem ); |
sl@0 | 155 |
virtual TInt fstreamL( CStifItemParser& aItem ); |
sl@0 | 156 |
virtual TInt istrstreamL( CStifItemParser& aItem ); |
sl@0 | 157 |
virtual TInt strstreamL( CStifItemParser& aItem ); |
sl@0 | 158 |
virtual TInt ostrstreamL( CStifItemParser& aItem ); |
sl@0 | 159 |
virtual TInt istreamiterators( CStifItemParser& aItem ); |
sl@0 | 160 |
virtual TInt istreambufiterators( CStifItemParser& aItem ); |
sl@0 | 161 |
virtual TInt strstreambufL( CStifItemParser& aItem ); |
sl@0 | 162 |
virtual TInt freezeL( CStifItemParser& aItem ); |
sl@0 | 163 |
virtual TInt fposL( CStifItemParser& aItem ); |
sl@0 | 164 |
virtual TInt filebufL( CStifItemParser& aItem ); |
sl@0 | 165 |
virtual TInt seekpL( CStifItemParser& aItem ); |
sl@0 | 166 |
|
sl@0 | 167 |
public: // Data |
sl@0 | 168 |
// ?one_line_short_description_of_data |
sl@0 | 169 |
//?data_declaration; |
sl@0 | 170 |
|
sl@0 | 171 |
protected: // Data |
sl@0 | 172 |
// ?one_line_short_description_of_data |
sl@0 | 173 |
//?data_declaration; |
sl@0 | 174 |
|
sl@0 | 175 |
private: // Data |
sl@0 | 176 |
|
sl@0 | 177 |
// ?one_line_short_description_of_data |
sl@0 | 178 |
//?data_declaration; |
sl@0 | 179 |
|
sl@0 | 180 |
// Reserved pointer for future extension |
sl@0 | 181 |
//TAny* iReserved; |
sl@0 | 182 |
|
sl@0 | 183 |
public: // Friend classes |
sl@0 | 184 |
//?friend_class_declaration; |
sl@0 | 185 |
protected: // Friend classes |
sl@0 | 186 |
//?friend_class_declaration; |
sl@0 | 187 |
private: // Friend classes |
sl@0 | 188 |
//?friend_class_declaration; |
sl@0 | 189 |
|
sl@0 | 190 |
}; |
sl@0 | 191 |
|
sl@0 | 192 |
#endif // TIOSTREAMS_H |
sl@0 | 193 |
|
sl@0 | 194 |
// End of File |