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_STMSTAT2_HXX
21 : #define ADC_STMSTAT2_HXX
22 :
23 : // USED SERVICES
24 : // BASE CLASSES
25 : // COMPONENTS
26 : // PARAMETERS
27 : class StmArrayStatu2;
28 : class StmBoundsStatu2;
29 :
30 : /** A StmStatu2 is a state within a StateMachin2.
31 : There are two kinds of it. Either its an array of pointers to
32 : other states within the state machine - an ArrayStatus.
33 :
34 : Or it is a BoundsStatus, which shows, the token cannot be
35 : followed further within the StateMachin2.
36 : **/
37 1578 : class StmStatu2 // := "State machine status"
38 : {
39 : public:
40 : typedef intt Branch; /// Values >= 0 give a next #Status' ID.
41 : /// Values <= 0 tell, that a token is finished.
42 : /// a value < 0 returns the status back to an upper level state machine.
43 : // LIFECYCLE
44 1578 : virtual ~StmStatu2() {}
45 :
46 : // OPERATIONS
47 : virtual StmArrayStatu2 *
48 : AsArray();
49 : virtual StmBoundsStatu2 *
50 : AsBounds();
51 :
52 : // INQUIRY
53 : virtual bool IsADefault() const = 0;
54 : };
55 :
56 :
57 :
58 : #endif
59 :
60 :
61 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|