moved from tools/bootstrap
This commit is contained in:
parent
a87007680b
commit
19171c68f3
4 changed files with 535 additions and 0 deletions
201
soldep/inc/appdef.hxx
Normal file
201
soldep/inc/appdef.hxx
Normal file
|
@ -0,0 +1,201 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* $RCSfile: appdef.hxx,v $
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2006-04-24 15:20:02 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
*
|
||||
* - GNU Lesser General Public License Version 2.1
|
||||
* - Sun Industry Standards Source License Version 1.1
|
||||
*
|
||||
* Sun Microsystems Inc., October, 2000
|
||||
*
|
||||
* GNU Lesser General Public License Version 2.1
|
||||
* =============================================
|
||||
* Copyright 2000 by Sun Microsystems, Inc.
|
||||
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
* Sun Industry Standards Source License Version 1.1
|
||||
* =================================================
|
||||
* The contents of this file are subject to the Sun Industry Standards
|
||||
* Source License Version 1.1 (the "License"); You may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of the
|
||||
* License at http://www.openoffice.org/license.html.
|
||||
*
|
||||
* Software provided under this License is provided on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
||||
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
||||
* See the License for the specific provisions governing your rights and
|
||||
* obligations concerning the Software.
|
||||
*
|
||||
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
||||
*
|
||||
* Copyright: 2000 by Sun Microsystems, Inc.
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): _______________________________________
|
||||
*
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#ifndef _MHAPPDEF_HXX
|
||||
#define _MHAPPDEF_HXX
|
||||
|
||||
|
||||
#ifdef UNX
|
||||
#define DEFAULT_INI_ROOT "/develop6/update/dev"
|
||||
#define DEFAULT_EIS_ROOT "/develop5/update/merge"
|
||||
#define PATH_SEPARATOR '/'
|
||||
#define S_PATH_SEPARATOR "/"
|
||||
#else
|
||||
#ifdef MAC
|
||||
#define DEFAULT_INI_ROOT "dev4.data1:s"
|
||||
#define PATH_SEPARATOR ':'
|
||||
#define S_PATH_SEPARATOR ":"
|
||||
#else
|
||||
#define DEFAULT_INI_ROOT "r:"
|
||||
#define DEFAULT_EIS_ROOT "w:"
|
||||
#define PATH_SEPARATOR '\\'
|
||||
#define S_PATH_SEPARATOR "\\"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define _INI_DRV DEFAULT_INI_ROOT
|
||||
#define DEFAULT_INI_FILE DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "b_server.ini"
|
||||
#define B_SERVER_ROOT DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server"
|
||||
#define BINARYROOT DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "bin"
|
||||
#define _JOB_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "db"
|
||||
#define _INJOB_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbin"
|
||||
#define _OUTJOB_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbout"
|
||||
#define _ERRJOB_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dberr"
|
||||
#define _BUILDPATTERN_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "pattern"
|
||||
#define _COMMENT_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "comment"
|
||||
#define _SOLARLIST DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
|
||||
#define _DEF_STAND_LIST DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
|
||||
#define _DEF_DEFAULT_LIST DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "default.lst"
|
||||
#define _DEF_SSOLARINI DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
|
||||
#define _DEF_SSCOMMON DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
|
||||
#define _SERVER_IDENT_FLAG DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "server.id"
|
||||
#define _CUSTOMJOBINI DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "custom.ini"
|
||||
#define _BUILDCOMMANDINI DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bcommand.ini"
|
||||
#define _DATABASEINI DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "database.ini"
|
||||
#define _ZNINI DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bszn.ini"
|
||||
#define _ERRORINFOFILE DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "errinf.lst"
|
||||
#define _REGEXPINFOFILE DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "regexp.lst"
|
||||
#define _POSITIVERRORINFOFILE DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "perrinf.lst"
|
||||
#define _POSITIVREGEXPINFOFILE DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "pregexp.lst"
|
||||
#define _INIROOT DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config"
|
||||
#define _INIROOT_OLD DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config"
|
||||
#define _ENV_DIR DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "config"
|
||||
#define _REDIRECTIONPATH DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "redir"
|
||||
#define _ZLOGSPATH DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "zlogs"
|
||||
#define DEFAULT_PROTPATH DEFAULT_INI_ROOT S_PATH_SEPARATOR "b_server" S_PATH_SEPARATOR "filesize"
|
||||
#define _INI_UNC "\\\\grande-11050.germany.sun.com\\R-Laufwerk"
|
||||
#define _INI_UNC_OLD "\\\\grande-11050.germany.sun.com\\R-Laufwerk\\s"
|
||||
#define LOG_DIR B_SERVER_ROOT S_PATH_SEPARATOR "log"
|
||||
|
||||
#define _REDIRECTIONSIZE "10000"
|
||||
#define _EISPATH DEFAULT_EIS_ROOT S_PATH_SEPARATOR "EIS"
|
||||
|
||||
#define _BUILDEVENTPATH _EISPATH S_PATH_SEPARATOR "EventImport"
|
||||
|
||||
#define _WRITE_LOGFILES "1"
|
||||
#define _WRITE_JOBFILES "1"
|
||||
|
||||
#define _VERSION_WINDOW "0"
|
||||
#define _JOB_WINDOW "0"
|
||||
#define _APPWIN_MAXIMIZED "0"
|
||||
#define _CONTEXT_TBOX "0"
|
||||
|
||||
#define _COLOR_DROPED COL_GRAY
|
||||
#define _COLOR_WAIT COL_BLUE
|
||||
#define _COLOR_BUILD COL_GREEN
|
||||
#define _COLOR_ERROR COL_RED
|
||||
#define _COLOR_BUILDERROR COL_MAGENTA
|
||||
#define _COLOR_OK COL_BLACK
|
||||
#define _COLOR_DELIVERED COL_CYAN
|
||||
#define _COLOR_MASTERSTOP COL_LIGHTRED
|
||||
|
||||
#define _ASYNCHRON "1"
|
||||
|
||||
// folowing defines are used to write filesize information for binaries
|
||||
#define OH_GOTT "*"
|
||||
#define UNX_DEFAULT_FILESIZES "bin/" OH_GOTT ".bin;bin/" OH_GOTT ".res;bin/" OH_GOTT ".tlb;lib/" OH_GOTT ".so"
|
||||
#define DOS_DEFAULT_FILESIZES "bin\\*.exe;bin\\*.res;bin\\*.dll;bin\\*.tlb"
|
||||
|
||||
#ifdef UNX
|
||||
#define DEFAULT_FILESIZES UNX_DEFAULT_FILESIZES
|
||||
#else
|
||||
#define DEFAULT_FILESIZES DOS_DEFAULT_FILESIZES
|
||||
#endif
|
||||
|
||||
/** States for BuildServer projects and directories
|
||||
*/
|
||||
#ifndef BuildStatus
|
||||
#define BuildStatus USHORT
|
||||
#endif
|
||||
#define BS_DROPED 0 /// project is waiting for dispatching
|
||||
#define BS_BUILD 1 /// project/directory is building
|
||||
#define BS_WAIT 2 /// project/directory is waiting for building
|
||||
#define BS_OK 3 /// project/directory builded whithout errors
|
||||
#define BS_BUILDANDERROR 4 /// project is in build, any errors accured
|
||||
#define BS_ERROR 5 /// project/directory builded with errors
|
||||
#define BS_NON 6 /// no state is set
|
||||
#define BS_DELIVERED 7 /// project was delivered without errors
|
||||
#define BS_DELIVEREDANDERROR 8 /// project was delivered with errors
|
||||
#define BS_FIXED 9 /// errors are fixed
|
||||
#define BS_NOTDELIVERED 10 /// project is ready to deliver
|
||||
#define BS_BUILD_PRIO 11 /// build projects with prio
|
||||
#define BS_BUILD_ORDER 12 /// build project in correct order
|
||||
#define BS_BUILD_DEPEND 13 /// build projects using dependencies
|
||||
#define BS_BUILD_DELIVER 14 /// build projects using dependencies and deliver builded projects
|
||||
#define BS_BUILD_NORMAL 15 /// build projects without using dependencies
|
||||
#define BS_BUILD_DELIVER_NO_DEPEND 16 /// build projects without using dependencies and deliver builded projects
|
||||
#define BS_BUILD_DOUBLE_LOG 17 /// error with double log names
|
||||
|
||||
#define LF_STARDIV "StarDivision"
|
||||
#define LF_UNIX "UNIX"
|
||||
#define LF_MAC "Macintosh"
|
||||
#define LF_OS2 "OS/2"
|
||||
|
||||
// path conversion
|
||||
const char* GetDefStandList();
|
||||
const char* GetIniRoot();
|
||||
const char* GetIniRootOld();
|
||||
const char* GetSSolarIni();
|
||||
const char* GetSSCommon();
|
||||
const char* GetBServerRoot();
|
||||
|
||||
const char* GetEnv( const char *pVar );
|
||||
const char* GetEnv( const char *pVar, const char *pDefault );
|
||||
|
||||
#define CONVERT_R_TO_HOSTFSYS( sPath ) { sPath.ToLowerAscii().SearchAndReplace( "r:", GetEnv("ISERVERBASE", DEFAULT_INI_ROOT ) ); sPath.SearchAndReplaceAll( "\\", S_PATH_SEPARATOR ); }
|
||||
|
||||
#define ISERVER "iserver.germany.sun.com"
|
||||
|
||||
// Only for usage inside IServer!
|
||||
#define ISERVER_DEF_STAND_LIST "r:\\b_server\\config\\stand.lst"
|
||||
#define ISERVER_DEF_DEPEND_LIST "r:\\b_server\\config\\depend.lst"
|
||||
|
||||
#endif
|
103
soldep/inc/dep.hxx
Normal file
103
soldep/inc/dep.hxx
Normal file
|
@ -0,0 +1,103 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* $RCSfile: dep.hxx,v $
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2006-04-24 15:20:02 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
*
|
||||
* - GNU Lesser General Public License Version 2.1
|
||||
* - Sun Industry Standards Source License Version 1.1
|
||||
*
|
||||
* Sun Microsystems Inc., October, 2000
|
||||
*
|
||||
* GNU Lesser General Public License Version 2.1
|
||||
* =============================================
|
||||
* Copyright 2000 by Sun Microsystems, Inc.
|
||||
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
* Sun Industry Standards Source License Version 1.1
|
||||
* =================================================
|
||||
* The contents of this file are subject to the Sun Industry Standards
|
||||
* Source License Version 1.1 (the "License"); You may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of the
|
||||
* License at http://www.openoffice.org/license.html.
|
||||
*
|
||||
* Software provided under this License is provided on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
||||
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
||||
* See the License for the specific provisions governing your rights and
|
||||
* obligations concerning the Software.
|
||||
*
|
||||
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
||||
*
|
||||
* Copyright: 2000 by Sun Microsystems, Inc.
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): _______________________________________
|
||||
*
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#ifndef _DEP_HXX
|
||||
#define _DEP_HXX
|
||||
|
||||
#include <bootstrp/sstring.hxx>
|
||||
|
||||
class SByteExtStringList : public SByteStringList
|
||||
{
|
||||
private:
|
||||
BOOL bDeleteStrings;
|
||||
public:
|
||||
SByteExtStringList(BOOL bDelete = TRUE) : bDeleteStrings (bDelete) {}
|
||||
~SByteExtStringList();
|
||||
};
|
||||
|
||||
class VersionDepInfo : public SByteExtStringList
|
||||
{
|
||||
private:
|
||||
ByteString* pVersion;
|
||||
public:
|
||||
VersionDepInfo() : pVersion (NULL) {}
|
||||
VersionDepInfo(const ByteString& rCurrentVersion) : pVersion (NULL) { pVersion = new ByteString(rCurrentVersion); }
|
||||
~VersionDepInfo();
|
||||
void Clear();
|
||||
const ByteString* GetVersion() { return pVersion; }
|
||||
//void SetVersion(ByteString* pStr) { pVersion = pStr; }
|
||||
};
|
||||
|
||||
DECLARE_LIST( VersionDepInfoList_Impl, VersionDepInfo* )
|
||||
|
||||
class VersionDepInfoList : public VersionDepInfoList_Impl
|
||||
{
|
||||
public:
|
||||
VersionDepInfoList () {}
|
||||
~VersionDepInfoList () {}
|
||||
VersionDepInfo* GetVersion (ByteString& rVersion);
|
||||
void RemoveVersion (ByteString& rVersion);
|
||||
VersionDepInfo* InsertVersion (ByteString& rVersion);
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
111
soldep/inc/minormk.hxx
Normal file
111
soldep/inc/minormk.hxx
Normal file
|
@ -0,0 +1,111 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* $RCSfile: minormk.hxx,v $
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2006-04-24 15:20:02 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
*
|
||||
* - GNU Lesser General Public License Version 2.1
|
||||
* - Sun Industry Standards Source License Version 1.1
|
||||
*
|
||||
* Sun Microsystems Inc., October, 2000
|
||||
*
|
||||
* GNU Lesser General Public License Version 2.1
|
||||
* =============================================
|
||||
* Copyright 2000 by Sun Microsystems, Inc.
|
||||
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
* Sun Industry Standards Source License Version 1.1
|
||||
* =================================================
|
||||
* The contents of this file are subject to the Sun Industry Standards
|
||||
* Source License Version 1.1 (the "License"); You may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of the
|
||||
* License at http://www.openoffice.org/license.html.
|
||||
*
|
||||
* Software provided under this License is provided on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
||||
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
||||
* See the License for the specific provisions governing your rights and
|
||||
* obligations concerning the Software.
|
||||
*
|
||||
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
||||
*
|
||||
* Copyright: 2000 by Sun Microsystems, Inc.
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): _______________________________________
|
||||
*
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#include <tools/stream.hxx>
|
||||
|
||||
class GenericInformationList;
|
||||
|
||||
//
|
||||
// class MinorMk
|
||||
//
|
||||
|
||||
class MinorMk : public SvFileStream
|
||||
{
|
||||
private:
|
||||
ByteString sRSCVERSION;
|
||||
ByteString sRSCREVISION;
|
||||
ByteString sBUILD;
|
||||
ByteString sLAST_MINOR;
|
||||
|
||||
BOOL bExists;
|
||||
|
||||
void ReadMinorMk( const String &rFileName );
|
||||
|
||||
public:
|
||||
MinorMk(
|
||||
GenericInformationList *pList,
|
||||
const ByteString &rVersion,
|
||||
const ByteString &rWorkStamp,
|
||||
const ByteString &rEnvironment,
|
||||
const ByteString &rMinor
|
||||
);
|
||||
MinorMk(
|
||||
const ByteString &rMinor,
|
||||
const ByteString &rEnvironment
|
||||
);
|
||||
MinorMk(
|
||||
GenericInformationList *pList,
|
||||
const ByteString rVersion
|
||||
);
|
||||
~MinorMk();
|
||||
|
||||
ByteString GetRscVersion()
|
||||
{ return sRSCVERSION; }
|
||||
ByteString GetRscRevision()
|
||||
{ return sRSCREVISION; }
|
||||
ByteString GetBuildNr()
|
||||
{ return sBUILD; }
|
||||
ByteString GetLastMinor()
|
||||
{ return sLAST_MINOR; }
|
||||
|
||||
BOOL Exists()
|
||||
{ return bExists; }
|
||||
};
|
120
soldep/inc/prodmap.hxx
Normal file
120
soldep/inc/prodmap.hxx
Normal file
|
@ -0,0 +1,120 @@
|
|||
/*************************************************************************
|
||||
*
|
||||
* $RCSfile: prodmap.hxx,v $
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2006-04-24 15:20:03 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
*
|
||||
* - GNU Lesser General Public License Version 2.1
|
||||
* - Sun Industry Standards Source License Version 1.1
|
||||
*
|
||||
* Sun Microsystems Inc., October, 2000
|
||||
*
|
||||
* GNU Lesser General Public License Version 2.1
|
||||
* =============================================
|
||||
* Copyright 2000 by Sun Microsystems, Inc.
|
||||
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
* Sun Industry Standards Source License Version 1.1
|
||||
* =================================================
|
||||
* The contents of this file are subject to the Sun Industry Standards
|
||||
* Source License Version 1.1 (the "License"); You may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of the
|
||||
* License at http://www.openoffice.org/license.html.
|
||||
*
|
||||
* Software provided under this License is provided on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
||||
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
||||
* See the License for the specific provisions governing your rights and
|
||||
* obligations concerning the Software.
|
||||
*
|
||||
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
||||
*
|
||||
* Copyright: 2000 by Sun Microsystems, Inc.
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): _______________________________________
|
||||
*
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#ifndef PRODUCT_MAPPER_HXX
|
||||
#define PRODUCT_MAPPER_HXX
|
||||
|
||||
#ifndef _SSTRING_HXX
|
||||
#include <bootstrp/sstring.hxx>
|
||||
#endif
|
||||
|
||||
class GenericInformation;
|
||||
class GenericInformationList;
|
||||
|
||||
DECLARE_LIST( BaseProductList, ByteString * )
|
||||
|
||||
//
|
||||
// class ProductMapper
|
||||
//
|
||||
|
||||
#define PRODUCT_MAPPER_OK 0x0000
|
||||
#define PRODUCT_MAPPER_NO_PRODUCT 0x0001
|
||||
#define PRODUCT_MAPPER_NO_VERSION_INFORMATION 0x0002
|
||||
|
||||
class ProductMapper
|
||||
{
|
||||
private:
|
||||
GenericInformationList *pVersionList;
|
||||
GenericInformationList *pProductList;
|
||||
|
||||
SByteStringList aBaseList;
|
||||
SByteStringList aPrintedList;
|
||||
|
||||
USHORT PrintDependentTargets( const ByteString &rProduct, USHORT nLevel = 0 );
|
||||
USHORT PrintAndDeleteBaseList();
|
||||
|
||||
SByteStringList *GetMinorList( const ByteString &rVersion, const ByteString &rEnvironment );
|
||||
BaseProductList *GetBases( GenericInformation *pProductInfo, USHORT nLevel = 0, BaseProductList *pBases = NULL );
|
||||
|
||||
USHORT PrintSingleMinorList( GenericInformation *pProductInfo, BaseProductList *pBases, const ByteString rEnvironment );
|
||||
|
||||
public:
|
||||
ProductMapper();
|
||||
ProductMapper( GenericInformationList *pVerList );
|
||||
|
||||
~ProductMapper();
|
||||
|
||||
void CreateProductList( GenericInformationList *pVerList );
|
||||
|
||||
USHORT GetProductInformation( const ByteString &rProduct, GenericInformation *& pProductInfo );
|
||||
USHORT PrintDependencies( const ByteString &rProduct );
|
||||
USHORT PrintProductList();
|
||||
|
||||
USHORT PrintMinorList( const ByteString rProduct, const ByteString rEnvironment );
|
||||
|
||||
static String GetVersionRoot( GenericInformationList *pList, const ByteString &rVersion );
|
||||
|
||||
GenericInformationList *GetProductList() { return pProductList; }
|
||||
};
|
||||
|
||||
|
||||
#endif // PRODUCT_MAPPER_HXX
|
||||
|
Loading…
Reference in a new issue