2010-10-27 06:45:03 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-22 12:32:07 -05:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2001-04-19 08:11:06 -05:00
|
|
|
#ifndef _HASHMAPS_HXX
|
|
|
|
#define _HASHMAPS_HXX
|
|
|
|
|
2001-09-14 08:38:16 -05:00
|
|
|
#include <ZipEntry.hxx>
|
2010-10-15 12:18:51 -05:00
|
|
|
#include <rtl/ref.hxx>
|
2011-02-05 11:49:26 -06:00
|
|
|
#include <boost/unordered_map.hpp>
|
2001-04-19 08:11:06 -05:00
|
|
|
|
|
|
|
struct eqFunc
|
|
|
|
{
|
2013-04-07 05:06:47 -05:00
|
|
|
sal_Bool operator()( const OUString &r1,
|
|
|
|
const OUString &r2) const
|
2001-04-19 08:11:06 -05:00
|
|
|
{
|
|
|
|
return r1 == r2;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2001-09-14 08:38:16 -05:00
|
|
|
class ZipPackageFolder;
|
2003-06-12 04:12:49 -05:00
|
|
|
namespace com { namespace sun { namespace star { namespace packages {
|
2001-10-30 06:52:18 -06:00
|
|
|
class ContentInfo;
|
2006-06-20 00:09:46 -05:00
|
|
|
} } } }
|
2001-09-14 08:38:16 -05:00
|
|
|
|
2013-04-07 05:06:47 -05:00
|
|
|
typedef boost::unordered_map < OUString,
|
2001-09-14 08:38:16 -05:00
|
|
|
ZipPackageFolder *,
|
2013-04-07 05:06:47 -05:00
|
|
|
OUStringHash,
|
2001-09-14 08:38:16 -05:00
|
|
|
eqFunc > FolderHash;
|
2001-04-19 08:11:06 -05:00
|
|
|
|
2013-04-07 05:06:47 -05:00
|
|
|
typedef boost::unordered_map < OUString,
|
2010-10-15 12:18:51 -05:00
|
|
|
rtl::Reference < com::sun::star::packages::ContentInfo >,
|
2013-04-07 05:06:47 -05:00
|
|
|
OUStringHash,
|
2001-09-14 08:38:16 -05:00
|
|
|
eqFunc > ContentHash;
|
|
|
|
|
2013-04-07 05:06:47 -05:00
|
|
|
typedef boost::unordered_map < OUString,
|
2001-09-14 08:38:16 -05:00
|
|
|
ZipEntry,
|
2013-04-07 05:06:47 -05:00
|
|
|
OUStringHash,
|
2001-09-14 08:38:16 -05:00
|
|
|
eqFunc > EntryHash;
|
|
|
|
|
2001-04-19 08:11:06 -05:00
|
|
|
#endif
|
2010-10-27 06:45:03 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|