oaCommonInstallDir.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaCommonInstallDir.h
00004 //
00005 // This file contains the definition of the InstallDir. This is a utility 
00006 // class for retrieving the OA install directory, data directory, etc.
00007 //
00008 // *****************************************************************************
00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00010 // Integration Initiative, this material may not be copied, modified,
00011 // re-published, uploaded, executed, or distributed in any way, in any medium,
00012 // in whole or in part, without prior written permission from Cadence.
00013 //
00014 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00015 //                           All Rights Reserved.
00016 //
00017 //  $Author: icftcm $
00018 //  $Revision: #1 $
00019 //  $Date: 2010/08/09 $
00020 //  $State: Exp $
00021 // *****************************************************************************
00022 // *****************************************************************************
00023 
00024 
00025 
00026 #if !defined(oaCommonInstallDir_P)
00027 #define oaCommonInstallDir_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaCommonTypes.h"
00035 #include <string>
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the oaCommon namespace
00041 // *****************************************************************************
00042 BEGIN_OA_COMMON_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // InstallDir
00048 // *****************************************************************************
00049 class OA_COMMON_DLL_API InstallDir {
00050 public:
00051     static const char           *getInstallDir();
00052     static const char           *getDataDir();
00053     static const char           *getBinDir();
00054     static const char           *getLibDir();
00055 
00056     static const char           *getDirSep();
00057     static const char           *getDebugStr();
00058     static const char           *getPrefix();
00059     static const char           *getSuffix();
00060 
00061 private:
00062     static const char           *getLibPath();
00063     static const char           *getEnvLibPath();
00064 
00065     static std::string          instDir;
00066     static std::string          dataDir;
00067     static std::string          libPath;
00068     static std::string          binDir;
00069     static std::string          libDir;
00070 
00071     static const char           *dirSep;
00072     static const char           *debugStr;
00073     static const char           *prefix;
00074     static const char           *suffix;
00075 
00076     static const oa::oaUInt4    maxPathLen;
00077     static const std::string    libPathEnvVar;
00078 };
00079 
00080 
00081 
00082 END_OA_COMMON_NAMESPACE
00083 
00084 #endif

Return to top of page