Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef ARY_IDL_IT_SEQUENCE_HXX
21 : #define ARY_IDL_IT_SEQUENCE_HXX
22 :
23 : // BASE CLASSES
24 : #include <ary/idl/i_type.hxx>
25 :
26 :
27 :
28 :
29 : namespace ary
30 : {
31 : namespace idl
32 : {
33 :
34 :
35 : /** A sequence (an array of a type).
36 : */
37 : class Sequence : public Type
38 : {
39 : public:
40 : enum E_ClassId { class_id = 2202 };
41 :
42 : // LIFECYCLE
43 : Sequence(
44 : Type_id i_nRelatedType );
45 : virtual ~Sequence();
46 :
47 : // INQUIRY
48 1194 : Type_id RelatedType() const { return nRelatedType; }
49 :
50 : private:
51 : // Interface csv::ConstProcessorClient:
52 : virtual void do_Accept(
53 : csv::ProcessorIfc & io_processor ) const;
54 : // Interface Object:
55 : virtual ClassId get_AryClass() const;
56 :
57 : // Interface Type:
58 : virtual void inq_Get_Text(
59 : StringVector & o_module,
60 : String & o_name,
61 : Ce_id & o_nRelatedCe,
62 : int & o_nSequemceCount,
63 : const Gate & i_rGate ) const;
64 : virtual const Type &
65 : inq_FirstEnclosedNonSequenceType(
66 : const Gate & i_rGate ) const;
67 : // DATA
68 : Type_id nRelatedType;
69 : };
70 :
71 :
72 :
73 :
74 : } // namespace idl
75 : } // namespace ary
76 : #endif
77 :
78 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|