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 ADC_LUIDL_TOKINTPR_HXX
21 : #define ADC_LUIDL_TOKINTPR_HXX
22 :
23 :
24 :
25 : // USED SERVICES
26 : // BASE CLASSES
27 : // COMPONENTS
28 : // PARAMETERS
29 :
30 : namespace csi
31 : {
32 : namespace uidl
33 : {
34 :
35 :
36 : class TokIdentifier;
37 : class TokPunctuation;
38 : class TokBuiltInType;
39 : class TokTypeModifier;
40 : class TokMetaType;
41 : class TokStereotype;
42 : class TokParameterHandling;
43 : class TokAssignment;
44 :
45 :
46 162 : class TokenInterpreter
47 : {
48 : public:
49 162 : virtual ~TokenInterpreter() {}
50 :
51 : virtual void Process_Identifier(
52 : const TokIdentifier &
53 : i_rToken ) = 0;
54 : virtual void Process_NameSeparator() = 0; // ::
55 : virtual void Process_Punctuation(
56 : const TokPunctuation &
57 : i_rToken ) = 0;
58 : virtual void Process_BuiltInType(
59 : const TokBuiltInType &
60 : i_rToken ) = 0;
61 : virtual void Process_TypeModifier(
62 : const TokTypeModifier &
63 : i_rToken ) = 0;
64 : virtual void Process_MetaType(
65 : const TokMetaType & i_rToken ) = 0;
66 : virtual void Process_Stereotype(
67 : const TokStereotype &
68 : i_rToken ) = 0;
69 : virtual void Process_ParameterHandling(
70 : const TokParameterHandling &
71 : i_rToken ) = 0;
72 : virtual void Process_Raises() = 0;
73 : virtual void Process_Needs() = 0;
74 : virtual void Process_Observes() = 0;
75 : virtual void Process_Assignment(
76 : const TokAssignment &
77 : i_rToken ) = 0;
78 : virtual void Process_EOL() = 0;
79 : };
80 :
81 :
82 :
83 : // IMPLEMENTATION
84 :
85 :
86 : } // namespace uidl
87 : } // namespace csi
88 :
89 : #endif
90 :
91 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|