os/ossrv/stdcpp/tsrc/Stdcpp_test/bcdrivers/tiostreams/inc/tiostreams.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/stdcpp/tsrc/Stdcpp_test/bcdrivers/tiostreams/inc/tiostreams.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,194 @@
     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 +
    1.23 +
    1.24 +#ifndef TIOSTREAMS_H
    1.25 +#define TIOSTREAMS_H
    1.26 +
    1.27 +//  INCLUDES
    1.28 +#include <StifLogger.h>
    1.29 +#include <TestScripterInternal.h>
    1.30 +#include <StifTestModule.h>
    1.31 +
    1.32 +
    1.33 +// CONSTANTS
    1.34 +//const ?type ?constant_var = ?constant;
    1.35 +
    1.36 +// MACROS
    1.37 +//#define ?macro ?macro_def
    1.38 +// Logging path
    1.39 +_LIT( KtiostreamsLogPath, "\\logs\\testframework\\tiostreams\\" ); 
    1.40 +// Log file
    1.41 +_LIT( KtiostreamsLogFile, "tiostreams.txt" ); 
    1.42 +
    1.43 +// FUNCTION PROTOTYPES
    1.44 +//?type ?function_name(?arg_list);
    1.45 +
    1.46 +// FORWARD DECLARATIONS
    1.47 +//class ?FORWARD_CLASSNAME;
    1.48 +class Ctiostreams;
    1.49 +
    1.50 +// DATA TYPES
    1.51 +//enum ?declaration
    1.52 +//typedef ?declaration
    1.53 +//extern ?data_type;
    1.54 +
    1.55 +// CLASS DECLARATION
    1.56 +
    1.57 +/**
    1.58 +*  Ctiostreams test class for STIF Test Framework TestScripter.
    1.59 +*  ?other_description_lines
    1.60 +*
    1.61 +*  @lib ?library
    1.62 +*  @since ?Series60_version
    1.63 +*/
    1.64 +NONSHARABLE_CLASS(Ctiostreams) : public CScriptBase
    1.65 +    {
    1.66 +    public:  // Constructors and destructor
    1.67 +
    1.68 +        /**
    1.69 +        * Two-phased constructor.
    1.70 +        */
    1.71 +        static Ctiostreams* NewL( CTestModuleIf& aTestModuleIf );
    1.72 +
    1.73 +        /**
    1.74 +        * Destructor.
    1.75 +        */
    1.76 +        virtual ~Ctiostreams();
    1.77 +
    1.78 +    public: // New functions
    1.79 +
    1.80 +        /**
    1.81 +        * ?member_description.
    1.82 +        * @since ?Series60_version
    1.83 +        * @param ?arg1 ?description
    1.84 +        * @return ?description
    1.85 +        */
    1.86 +        //?type ?member_function( ?type ?arg1 );
    1.87 +
    1.88 +    public: // Functions from base classes
    1.89 +
    1.90 +        /**
    1.91 +        * From CScriptBase Runs a script line.
    1.92 +        * @since ?Series60_version
    1.93 +        * @param aItem Script line containing method name and parameters
    1.94 +        * @return Symbian OS error code
    1.95 +        */
    1.96 +        virtual TInt RunMethodL( CStifItemParser& aItem );
    1.97 +
    1.98 +    protected:  // New functions
    1.99 +
   1.100 +        /**
   1.101 +        * ?member_description.
   1.102 +        * @since ?Series60_version
   1.103 +        * @param ?arg1 ?description
   1.104 +        * @return ?description
   1.105 +        */
   1.106 +        //?type ?member_function( ?type ?arg1 );
   1.107 +
   1.108 +    protected:  // Functions from base classes
   1.109 +
   1.110 +        /**
   1.111 +        * From ?base_class ?member_description
   1.112 +        */
   1.113 +        //?type ?member_function();
   1.114 +
   1.115 +    private:
   1.116 +
   1.117 +        /**
   1.118 +        * C++ default constructor.
   1.119 +        */
   1.120 +        Ctiostreams( CTestModuleIf& aTestModuleIf );
   1.121 +
   1.122 +        /**
   1.123 +        * By default Symbian 2nd phase constructor is private.
   1.124 +        */
   1.125 +        void ConstructL();
   1.126 +
   1.127 +        // Prohibit copy constructor if not deriving from CBase.
   1.128 +        // ?classname( const ?classname& );
   1.129 +        // Prohibit assigment operator if not deriving from CBase.
   1.130 +        // ?classname& operator=( const ?classname& );
   1.131 +
   1.132 +        /**
   1.133 +        * Frees all resources allocated from test methods.
   1.134 +        * @since ?Series60_version
   1.135 +        */
   1.136 +        void Delete();
   1.137 +
   1.138 +        /**
   1.139 +        * Test methods are listed below. 
   1.140 +        */
   1.141 +
   1.142 +        /**
   1.143 +        * Example test method.
   1.144 +        * @since ?Series60_version
   1.145 +        * @param aItem Script line containing parameters.
   1.146 +        * @return Symbian OS error code.
   1.147 +        */
   1.148 +               
   1.149 + virtual TInt iofstreamL( CStifItemParser& aItem );
   1.150 + virtual TInt stringbufL( CStifItemParser& aItem );
   1.151 + virtual TInt stringstreamL( CStifItemParser& aItem );
   1.152 + virtual TInt streambufL( CStifItemParser& aItem );
   1.153 + virtual TInt ostreamL( CStifItemParser& aItem );
   1.154 + virtual TInt istreamL( CStifItemParser& aItem );
   1.155 + virtual TInt istringstreamL( CStifItemParser& aItem );
   1.156 + virtual TInt ostringstreamL( CStifItemParser& aItem );
   1.157 + virtual TInt ostreamiterators( CStifItemParser& aItem );
   1.158 + virtual TInt fstreamL( CStifItemParser& aItem );
   1.159 + virtual TInt istrstreamL( CStifItemParser& aItem );
   1.160 + virtual TInt strstreamL( CStifItemParser& aItem );
   1.161 + virtual TInt ostrstreamL( CStifItemParser& aItem );
   1.162 + virtual TInt istreamiterators( CStifItemParser& aItem );
   1.163 + virtual TInt istreambufiterators( CStifItemParser& aItem );
   1.164 + virtual TInt strstreambufL( CStifItemParser& aItem );
   1.165 + virtual TInt freezeL( CStifItemParser& aItem );
   1.166 +  virtual TInt fposL( CStifItemParser& aItem );
   1.167 +  virtual TInt filebufL( CStifItemParser& aItem );
   1.168 +  virtual TInt seekpL( CStifItemParser& aItem );
   1.169 +
   1.170 +    public:     // Data
   1.171 +        // ?one_line_short_description_of_data
   1.172 +        //?data_declaration;
   1.173 +
   1.174 +    protected:  // Data
   1.175 +        // ?one_line_short_description_of_data
   1.176 +        //?data_declaration;
   1.177 +
   1.178 +    private:    // Data
   1.179 +        
   1.180 +        // ?one_line_short_description_of_data
   1.181 +        //?data_declaration;
   1.182 +
   1.183 +        // Reserved pointer for future extension
   1.184 +        //TAny* iReserved;
   1.185 +
   1.186 +    public:     // Friend classes
   1.187 +        //?friend_class_declaration;
   1.188 +    protected:  // Friend classes
   1.189 +        //?friend_class_declaration;
   1.190 +    private:    // Friend classes
   1.191 +        //?friend_class_declaration;
   1.192 +
   1.193 +    };
   1.194 +
   1.195 +#endif      // TIOSTREAMS_H
   1.196 +
   1.197 +// End of File