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