1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <ary/idl/i_enum.hxx>
22 #include <ary/idl/ik_enum.hxx>
25 // NOT FULLY DECLARED SERVICES
26 #include <cosv/tpl/processor.hxx>
27 #include <sci_impl.hxx>
28 #include "i2s_calculator.hxx"
36 Enum::Enum( const String
& i_sName
,
49 Enum::do_Accept( csv::ProcessorIfc
& io_processor
) const
51 csv::CheckedCall(io_processor
, *this);
55 Enum::get_AryClass() const
61 Enum::inq_LocalName() const
67 Enum::inq_NameRoom() const
73 Enum::inq_Owner() const
79 Enum::inq_SightLevel() const
89 enum_cast( const CodeEntity
& i_ce
)
91 csv_assert( i_ce
.AryClass() == Enum::class_id
);
92 return static_cast< const Enum
& >(i_ce
);
96 attr::Get_Values( Dyn_CeIterator
& o_result
,
97 const CodeEntity
& i_ce
)
99 o_result
= new SCI_Vector
<Ce_id
>(enum_cast(i_ce
).aValues
);
104 xref::Get_SynonymTypedefs( Dyn_CeIterator
& o_result
,
105 const CodeEntity
& i_ce
)
107 o_result
= new SCI_Vector
<Ce_id
>(i_ce
.Secondaries().List(enum_2s_SynonymTypedefs
));
111 xref::Get_AsReturns( Dyn_CeIterator
& o_result
,
112 const CodeEntity
& i_ce
)
114 o_result
= new SCI_Vector
<Ce_id
>(i_ce
.Secondaries().List(enum_2s_AsReturns
));
118 xref::Get_AsParameters( Dyn_CeIterator
& o_result
,
119 const CodeEntity
& i_ce
)
121 o_result
= new SCI_Vector
<Ce_id
>(i_ce
.Secondaries().List(enum_2s_AsParameters
));
125 xref::Get_AsDataTypes( Dyn_CeIterator
& o_result
,
126 const CodeEntity
& i_ce
)
128 o_result
= new SCI_Vector
<Ce_id
>(i_ce
.Secondaries().List(enum_2s_AsDataTypes
));
131 } // namespace ifc_enum
137 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */