testexecfw/stf/stffw/logger/STFLoggingServer/inc/LoggerOverFlow.h
changeset 2 8bb370ba6d1d
equal deleted inserted replaced
1:bbd31066657e 2:8bb370ba6d1d
       
     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: This file contains the header file of the 
       
    15 * TDesLoggerOverflowHandler and TDes8LoggerOverflowHandler.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef LOGGEROVERFLOW_H
       
    20 #define LOGGEROVERFLOW_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "StifLoggerBase.h"
       
    24 #include "Output.h"
       
    25 #include "RDebugOutput.h"
       
    26 
       
    27 // DESCRIPTION
       
    28 // TDesLoggerOverflowHandler is a STIF Test Framework StifLoggerBase class.
       
    29 // Class contains an over flow operations.
       
    30 
       
    31 class TDesLoggerOverflowHandler 
       
    32         :public TDes16Overflow
       
    33     {
       
    34     public:     // New functions
       
    35 
       
    36         /**
       
    37         * C++ default constructor.
       
    38         */
       
    39         TDesLoggerOverflowHandler( CStifLoggerBase* aLogger, TInt aOverFlowSource );
       
    40 
       
    41         /**
       
    42         * Simple overflow handling(16 bit)
       
    43         */
       
    44         void Overflow( TDes16& aDes );
       
    45 
       
    46     public:     // Data
       
    47 
       
    48         /**
       
    49         * Pointer to CStifLoggerBase class object
       
    50         */
       
    51         CStifLoggerBase* iLogger;
       
    52 
       
    53         /**
       
    54         * Over flow source
       
    55         */
       
    56         TInt iOverFlowSource;
       
    57     };
       
    58 
       
    59 // CLASS DECLARATION
       
    60 
       
    61 // DESCRIPTION
       
    62 // TDes8LoggerOverflowHandler is a STIF Test Framework StifLoggerBase class.
       
    63 // Class contains an over flow operations.
       
    64 
       
    65 class TDes8LoggerOverflowHandler 
       
    66         :public TDes8Overflow
       
    67     {
       
    68     public:     // New functions
       
    69 
       
    70         /**
       
    71         * C++ default constructor.
       
    72         */
       
    73         TDes8LoggerOverflowHandler( CStifLoggerBase* aLogger, TInt aOverFlowSource );
       
    74 
       
    75 
       
    76         /**
       
    77         * Simple overflow handling(8 bit)
       
    78         */
       
    79         void Overflow( TDes8& aDes );
       
    80 
       
    81     public:     // Data
       
    82 
       
    83         /**
       
    84         * Pointer to CStifLoggerBase class object
       
    85         */
       
    86         CStifLoggerBase* iLogger;
       
    87 
       
    88         /**
       
    89         * Over flow source
       
    90         */
       
    91         TInt iOverFlowSource;
       
    92     };
       
    93 
       
    94 #endif      // LOGGEROVERFLOW_H
       
    95 
       
    96 // End of File