1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/stdcpp/tsrc/BC/apps/tiostreams/inc/tiostreams.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,211 @@
1.4 +/*
1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef TIOSTREAMS_H
1.23 +#define TIOSTREAMS_H
1.24 +
1.25 +// INCLUDES
1.26 +#include <StifLogger.h>
1.27 +#include <TestScripterInternal.h>
1.28 +#include <StifTestModule.h>
1.29 +
1.30 +
1.31 +// CONSTANTS
1.32 +//const ?type ?constant_var = ?constant;
1.33 +
1.34 +// MACROS
1.35 +//#define ?macro ?macro_def
1.36 +#define TEST_MODULE_VERSION_MAJOR 50
1.37 +#define TEST_MODULE_VERSION_MINOR 9
1.38 +#define TEST_MODULE_VERSION_BUILD 06
1.39 +// Logging path
1.40 +_LIT( KtiostreamsLogPath, "\\logs\\testframework\\tiostreams\\" );
1.41 +// Log file
1.42 +_LIT( KtiostreamsLogFile, "tiostreams.txt" );
1.43 +
1.44 +// FUNCTION PROTOTYPES
1.45 +//?type ?function_name(?arg_list);
1.46 +
1.47 +// FORWARD DECLARATIONS
1.48 +//class ?FORWARD_CLASSNAME;
1.49 +class Ctiostreams;
1.50 +
1.51 +// DATA TYPES
1.52 +//enum ?declaration
1.53 +//typedef ?declaration
1.54 +//extern ?data_type;
1.55 +
1.56 +// CLASS DECLARATION
1.57 +
1.58 +/**
1.59 +* Ctiostreams test class for STIF Test Framework TestScripter.
1.60 +* ?other_description_lines
1.61 +*
1.62 +* @lib ?library
1.63 +* @since ?Series60_version
1.64 +*/
1.65 +NONSHARABLE_CLASS(Ctiostreams) : public CScriptBase
1.66 + {
1.67 + public: // Constructors and destructor
1.68 +
1.69 + /**
1.70 + * Two-phased constructor.
1.71 + */
1.72 + static Ctiostreams* NewL( CTestModuleIf& aTestModuleIf );
1.73 +
1.74 + /**
1.75 + * Destructor.
1.76 + */
1.77 + virtual ~Ctiostreams();
1.78 +
1.79 + public: // New functions
1.80 +
1.81 + /**
1.82 + * ?member_description.
1.83 + * @since ?Series60_version
1.84 + * @param ?arg1 ?description
1.85 + * @return ?description
1.86 + */
1.87 + //?type ?member_function( ?type ?arg1 );
1.88 +
1.89 + public: // Functions from base classes
1.90 +
1.91 + /**
1.92 + * From CScriptBase Runs a script line.
1.93 + * @since ?Series60_version
1.94 + * @param aItem Script line containing method name and parameters
1.95 + * @return Symbian OS error code
1.96 + */
1.97 + virtual TInt RunMethodL( CStifItemParser& aItem );
1.98 + /**
1.99 + * Method used to log version of test module
1.100 + */
1.101 + void SendTestModuleVersion();
1.102 + protected: // New functions
1.103 +
1.104 + /**
1.105 + * ?member_description.
1.106 + * @since ?Series60_version
1.107 + * @param ?arg1 ?description
1.108 + * @return ?description
1.109 + */
1.110 + //?type ?member_function( ?type ?arg1 );
1.111 +
1.112 + protected: // Functions from base classes
1.113 +
1.114 + /**
1.115 + * From ?base_class ?member_description
1.116 + */
1.117 + //?type ?member_function();
1.118 +
1.119 + private:
1.120 +
1.121 + /**
1.122 + * C++ default constructor.
1.123 + */
1.124 + Ctiostreams( CTestModuleIf& aTestModuleIf );
1.125 +
1.126 + /**
1.127 + * By default Symbian 2nd phase constructor is private.
1.128 + */
1.129 + void ConstructL();
1.130 +
1.131 + // Prohibit copy constructor if not deriving from CBase.
1.132 + // ?classname( const ?classname& );
1.133 + // Prohibit assigment operator if not deriving from CBase.
1.134 + // ?classname& operator=( const ?classname& );
1.135 +
1.136 + /**
1.137 + * Frees all resources allocated from test methods.
1.138 + * @since ?Series60_version
1.139 + */
1.140 + void Delete();
1.141 +
1.142 + /**
1.143 + * Test methods are listed below.
1.144 + */
1.145 +
1.146 + /**
1.147 + * Example test method.
1.148 + * @since ?Series60_version
1.149 + * @param aItem Script line containing parameters.
1.150 + * @return Symbian OS error code.
1.151 + */
1.152 +
1.153 + virtual TInt iofstreamL( CStifItemParser& aItem );
1.154 + virtual TInt stringbufL( CStifItemParser& aItem );
1.155 + virtual TInt stringstreamL( CStifItemParser& aItem );
1.156 + virtual TInt streambufL( CStifItemParser& aItem );
1.157 + virtual TInt ostreamL( CStifItemParser& aItem );
1.158 + virtual TInt istreamL( CStifItemParser& aItem );
1.159 + virtual TInt istringstreamL( CStifItemParser& aItem );
1.160 + virtual TInt ostringstreamL( CStifItemParser& aItem );
1.161 + virtual TInt ostreamiterators( CStifItemParser& aItem );
1.162 + virtual TInt fstreamL( CStifItemParser& aItem );
1.163 + virtual TInt istrstreamL( CStifItemParser& aItem );
1.164 + virtual TInt strstreamL( CStifItemParser& aItem );
1.165 + virtual TInt ostrstreamL( CStifItemParser& aItem );
1.166 + virtual TInt istreamiterators( CStifItemParser& aItem );
1.167 + virtual TInt istreambufiterators( CStifItemParser& aItem );
1.168 + virtual TInt strstreambufL( CStifItemParser& aItem );
1.169 + virtual TInt freezeL( CStifItemParser& aItem );
1.170 + virtual TInt fposL( CStifItemParser& aItem );
1.171 + virtual TInt filebufL( CStifItemParser& aItem );
1.172 +
1.173 + virtual TInt basicstring( CStifItemParser& aItem );
1.174 + virtual TInt basicfilebufL( CStifItemParser& aItem );
1.175 + virtual TInt basicistreamL( CStifItemParser& aItem );
1.176 + virtual TInt wfstreamL( CStifItemParser& aItem );
1.177 + virtual TInt wifstreamL( CStifItemParser& aItem );
1.178 + virtual TInt wistreamL( CStifItemParser& aItem );
1.179 + virtual TInt wofstreamL( CStifItemParser& aItem );
1.180 + virtual TInt wistringstreamL( CStifItemParser& aItem );
1.181 + virtual TInt wostringstreamL( CStifItemParser& aItem );
1.182 + virtual TInt wstreambufL( CStifItemParser& aItem );
1.183 + virtual TInt wostreamL( CStifItemParser& aItem );
1.184 + virtual TInt wstringbufL( CStifItemParser& aItem );
1.185 +
1.186 +
1.187 + public: // Data
1.188 + // ?one_line_short_description_of_data
1.189 + //?data_declaration;
1.190 +
1.191 + protected: // Data
1.192 + // ?one_line_short_description_of_data
1.193 + //?data_declaration;
1.194 +
1.195 + private: // Data
1.196 +
1.197 + // ?one_line_short_description_of_data
1.198 + //?data_declaration;
1.199 +
1.200 + // Reserved pointer for future extension
1.201 + //TAny* iReserved;
1.202 +
1.203 + public: // Friend classes
1.204 + //?friend_class_declaration;
1.205 + protected: // Friend classes
1.206 + //?friend_class_declaration;
1.207 + private: // Friend classes
1.208 + //?friend_class_declaration;
1.209 +
1.210 + };
1.211 +
1.212 +#endif // TIOSTREAMS_H
1.213 +
1.214 +// End of File