Bump for 3.6-28
[LibreOffice.git] / autodoc / source / ary / idl / i_traits.cxx
blob4dc9c2b2c7503dcdd56165aadf9700926523b8cf
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include <precomp.h>
30 #include <ary/idl/i_traits.hxx>
33 // NOT FULLY DEFINED SERVICES
34 #include <ary/namesort.hxx>
35 #include "is_ce.hxx"
39 namespace ary
41 namespace idl
46 //******************** Ce_Traits ********************//
47 Ce_Traits::entity_base_type &
48 Ce_Traits::EntityOf_(id_type i_id)
50 csv_assert(i_id.IsValid());
51 return Ce_Storage::Instance_()[i_id];
54 //******************** Ce_Compare ********************//
55 const Ce_Compare::key_type &
56 Ce_Compare::KeyOf_(const entity_base_type & i_entity)
58 return i_entity.LocalName();
61 bool
62 Ce_Compare::Lesser_( const key_type & i_1,
63 const key_type & i_2 )
65 static ::ary::LesserName less_;
66 return less_(i_1,i_2);
72 } // namespace idl
73 } // namespace ary
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */