diff -r 000000000000 -r 2e3d3ce01487 tzpcside/tzcompiler/Include/TzGlobals.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tzpcside/tzcompiler/Include/TzGlobals.h Tue Feb 02 10:12:00 2010 +0200 @@ -0,0 +1,84 @@ +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// DST TZ Database Compiler +// +// + +#ifndef __TZGLOBALS_H +#define __TZGLOBALS_H +//============================================================================ +// This disables a Visual Studio 6 browser symbol truncation warning which +// appears in debug builds only when using the standard template library. +// This occurs when the template names are expanded and become longer than 255 +// characters. This does not appear in release builds. +//============================================================================ +#pragma warning(disable: 4786) +//============================================================================ +// Include files +//============================================================================ +#include +#include +#include "..\..\tz\Server\Include\tzpersisted.h" +//============================================================================ +// Global variables used by the Tz Database Compiler +//============================================================================ + +const int KDefaultStartYear = 1900; +const int KMinStartYear = 1; +const int KMaxStartYear = 2100; +const int KMaxZoneNameLength = 255; +const int KMaxPathLength = 255; +const int KMaxFiles = 255; +const int KFirstZoneNumericId = 8; +extern const char KCharOlsonStartOfComment; +extern const char* KOlsonRuleTag; +extern const char* KOlsonZoneTag; +extern const char* KOlsonLinkTag; + +class TzGlobals + { +public: + + enum TzFaults + { + ETzNone = 0, + ETzAbortNoConfigFile, + ETzAbortNoInputFiles, + ETzAbortCreateDatabaseFile, + ETzAbortScannerSyntaxError, + ETzAbortScannerFileIOError, + ETzAbortInvalidCompilerState + }; + + + static TUint16 iStartYear; + static char iDefaultZoneName[KMaxZoneNameLength]; + static TUint16 iRegionMask; + static TUint16 iNextNumericZoneId; + static bool iIncludeAllRegions; + static std::string iIniFilePath; //Path to the ini file in use + static std::string iZoneIdIniFilePath; //Zone Identity ini file + static std::string iOutputFilePath; + static std::string iInputFilePath; + static std::vector iIncludedRegions; + static std::vector iExcludedRegions; + static std::vector iAvailableRegions; + static std::vector iExcludedFiles; + static std::vector iAvailableFiles; + }; + +#endif //__TZGLOBALS_H +//============================================================================ +// End of file +//============================================================================