testexecfw/stf/stffw/logger/STFLoggingServer/src/NullOutput.cpp
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 module contains implementation of CNullOutput 
       
    15 * class member functions.
       
    16 *
       
    17 */
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "Output.h"
       
    21 #include "NullOutput.h"
       
    22 
       
    23 // EXTERNAL DATA STRUCTURES
       
    24 // None
       
    25 
       
    26 // EXTERNAL FUNCTION PROTOTYPES  
       
    27 // None
       
    28 
       
    29 // CONSTANTS
       
    30 // None
       
    31 
       
    32 // MACROS
       
    33 // None
       
    34 
       
    35 // LOCAL CONSTANTS AND MACROS
       
    36 // None
       
    37 
       
    38 // MODULE DATA STRUCTURES
       
    39 // None
       
    40 
       
    41 // LOCAL FUNCTION PROTOTYPES
       
    42 // None
       
    43 
       
    44 // FORWARD DECLARATIONS
       
    45 // None
       
    46 
       
    47 // ==================== LOCAL FUNCTIONS =======================================
       
    48 // None
       
    49 
       
    50 // ================= MEMBER FUNCTIONS =========================================
       
    51 
       
    52 /*
       
    53 -------------------------------------------------------------------------------
       
    54 
       
    55     Class: CNullOutput
       
    56 
       
    57     Method: CNullOutput
       
    58 
       
    59     Description: Default constructor
       
    60 
       
    61     C++ default constructor can NOT contain any code, that
       
    62     might leave.
       
    63 
       
    64     Parameters: None
       
    65 
       
    66     Return Values: None
       
    67 
       
    68     Errors/Exceptions: None
       
    69 
       
    70     Status: Approved
       
    71 
       
    72 -------------------------------------------------------------------------------
       
    73 */
       
    74 CNullOutput::CNullOutput()
       
    75     {
       
    76 
       
    77     }
       
    78 
       
    79 /*
       
    80 -------------------------------------------------------------------------------
       
    81 
       
    82     Class: CNullOutput
       
    83 
       
    84     Method: ConstructL
       
    85 
       
    86     Description: Symbian OS second phase constructor
       
    87 
       
    88     Symbian OS default constructor can leave.
       
    89 
       
    90     Parameters: None
       
    91 
       
    92     Return Values: None
       
    93 
       
    94     Errors/Exceptions: None
       
    95 
       
    96     Status: Approved
       
    97 
       
    98 -------------------------------------------------------------------------------
       
    99 */
       
   100 void CNullOutput::ConstructL()
       
   101     {
       
   102 
       
   103     }
       
   104 
       
   105 /*
       
   106 -------------------------------------------------------------------------------
       
   107 
       
   108     Class: CNullOutput
       
   109 
       
   110     Method: NewL
       
   111 
       
   112     Description: Two-phased constructor.
       
   113 
       
   114     Parameters: None
       
   115 
       
   116     Return Values: CNullOutput*: pointer to CNullOutput object
       
   117 
       
   118     Errors/Exceptions: Leaves if ConstructL leaves
       
   119 
       
   120     Status: Approved
       
   121 
       
   122 -------------------------------------------------------------------------------
       
   123 */
       
   124 CNullOutput* CNullOutput::NewL()
       
   125     {
       
   126     // Create CNullOutput object nullOutput
       
   127     CNullOutput* nullOutput = new (ELeave) CNullOutput();
       
   128 
       
   129     CleanupStack::PushL( nullOutput );
       
   130     nullOutput->ConstructL();
       
   131     CleanupStack::Pop( nullOutput );
       
   132 
       
   133     return nullOutput;
       
   134 
       
   135     }
       
   136 
       
   137 /*
       
   138 -------------------------------------------------------------------------------
       
   139 
       
   140     Class: CNullOutput
       
   141 
       
   142     Method: ~CNullOutput
       
   143 
       
   144     Description: Destructor
       
   145 
       
   146     Parameters: None
       
   147 
       
   148     Return Values: None
       
   149 
       
   150     Errors/Exceptions: None
       
   151 
       
   152     Status: Approved
       
   153 
       
   154 -------------------------------------------------------------------------------
       
   155 */
       
   156 CNullOutput::~CNullOutput()
       
   157     {
       
   158 
       
   159     }
       
   160 
       
   161 /*
       
   162 -------------------------------------------------------------------------------
       
   163 
       
   164     Class: CNullOutput
       
   165 
       
   166     Method: Write
       
   167 
       
   168     Description: Write log information or data to the file. 16 bit.
       
   169 
       
   170     CNullOutput's Write() method purpose is to look like logging although it
       
   171     don't do any logging operations.
       
   172 
       
   173     Parameters: TBool aWithTimeStamp: in: Is time stamp flag used
       
   174                 TBool aWithLineBreak: in: Is line break flag used
       
   175                 TBool aWithEventRanking: in: Is event ranking flag used
       
   176                 const TDesC& aData: in: Logged or saved data
       
   177 
       
   178     Return Values: None
       
   179 
       
   180     Errors/Exceptions: None
       
   181 
       
   182     Status: Approved
       
   183 
       
   184 -------------------------------------------------------------------------------
       
   185 */
       
   186 TInt CNullOutput::Write( TBool /* aWithTimeStamp */, 
       
   187                             TBool /* aWithLineBreak */,
       
   188                             TBool /* aWithEventRanking */,
       
   189                             const TDesC& /* aData */ )
       
   190     {
       
   191     return KErrNone;
       
   192 
       
   193     }
       
   194 
       
   195 /*
       
   196 -------------------------------------------------------------------------------
       
   197 
       
   198     Class: CNullOutput
       
   199 
       
   200     Method: Write
       
   201 
       
   202     Description: Write log information or data to the file. 8 bit.
       
   203 
       
   204     CNullOutput's Write() method purpose is to look like logging although it
       
   205     don't do any logging operations.
       
   206 
       
   207     Parameters: TBool aWithTimeStamp: in: Is time stamp flag used
       
   208                 TBool aWithLineBreak: in: Is line break flag used
       
   209                 TBool aWithEventRanking: in: Is event ranking flag used
       
   210                 const TDesC8& aData: in: Logged or saved data
       
   211 
       
   212     Return Values: None
       
   213 
       
   214     Errors/Exceptions: None
       
   215 
       
   216     Status: Approved
       
   217 
       
   218 -------------------------------------------------------------------------------
       
   219 */
       
   220 TInt CNullOutput::Write(  TBool /* aWithTimeStamp */, 
       
   221                             TBool /* aWithLineBreak */,
       
   222                             TBool /* aWithEventRanking */,
       
   223                             const TDesC8& /* aData */ )
       
   224     {
       
   225     return KErrNone;
       
   226 
       
   227     }
       
   228 
       
   229 // ================= OTHER EXPORTED FUNCTIONS =================================
       
   230 // None
       
   231 
       
   232 //  End of File