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 #ifndef ARY_IDL_I_MODULE_HXX
30 #define ARY_IDL_I_MODULE_HXX
33 #include <ary/idl/i_ce.hxx>
36 #include <ary/stdconstiter.hxx>
43 template <class> class NameTreeNode
;
54 /** Represents an IDL module.
56 "Name" in methods means all code entities which belong into
57 this namespace (not in a subnamespace of this one), but not
60 "SubNamespace" in method names refers to all direct subnamespaces.
62 class Module
: public CodeEntity
65 enum E_ClassId
{ class_id
= 2000 };
70 const String
& i_sName
,
71 const Module
& i_rParent
);
75 const String
& i_sName
,
79 const String
& i_sName
) const;
81 Dyn_StdConstIterator
<Ce_id
> &
84 // Interface csv::ConstProcessorClient:
85 virtual void do_Accept(
86 csv::ProcessorIfc
& io_processor
) const;
87 // Interface ary::Object:
88 virtual ClassId
get_AryClass() const;
90 // Interface CodeEntity
91 virtual const String
& inq_LocalName() const;
92 virtual Ce_id
inq_NameRoom() const;
93 virtual Ce_id
inq_Owner() const;
94 virtual E_SightLevel
inq_SightLevel() const;
96 friend struct ifc_module::attr
;
99 Dyn
< NameTreeNode
<Ce_id
> >
105 is_Module( const CodeEntity
& i_rCe
)
107 return i_rCe
.AryClass() == Module::class_id
;
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */