tzpcside/tzcompiler/Include/TzHelpers.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // DST TZ Database Compiler 
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __TZHELPERS_H_
       
    19 #define __TZHELPERS_H_
       
    20 
       
    21 #include <string>
       
    22 #include "TzEntities.h"
       
    23 
       
    24 //============================================================================
       
    25 // CTzCpHelpers Class Definition
       
    26 // Collection of useful static functions
       
    27 //============================================================================
       
    28 class CTzCpHelpers
       
    29 	{
       
    30 public:
       
    31 	static int GetMonth(std::string monthString);
       
    32 	static int GetDay(std::string dayString);
       
    33 	static TInt16 GetTimeOfDayInMinutes(std::string aTimeString);
       
    34 	static int GetTimeReference(std::string aTimeString);
       
    35 	static int GetFileSizeInBytes(std::string aFileName);
       
    36 	static void PrintStep(std::string aStep);
       
    37 	static void PrintStepResult(int aResult);
       
    38 	};
       
    39 #endif
       
    40 //============================================================================
       
    41 // End of file
       
    42 //============================================================================