Debian Codegraph @

Kernel/eFPPCycleInRIA.h

raw symbols SCIP
1 /* This file is part of the FaCT++ DL reasoner
2 Copyright (C) 2007-2015 Dmitry Tsarkov and The University of Manchester
3 Copyright (C) 2015-2017 Dmitry Tsarkov
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef EFPPCYCLEINRIA_H
21 #define EFPPCYCLEINRIA_Hcxx . . $ `Kernel/eFPPCycleInRIA.h:21:9`!
22
23 #include "eFaCTPlusPlus.h"cxx . . $ `<file>/Kernel/eFaCTPlusPlus.h`/
24
25 /// exception thrown in case there is a (disallowed) cycle in a role-inclusion axiom
26 class EFPPCycleInRIAcxx . . $ EFPPCycleInRIA#: public EFaCTPlusPluscxx . . $ EFaCTPlusPlus#
27 {
28 private: // members
29 /// saved name of the role
30 const stdcxx . . $ std/::stringcxx . . $ std/string# roleNamecxx . . $ EFPPCycleInRIA#roleName.;
31 /// error string
32 stdcxx . . $ std/::stringcxx . . $ std/string# strcxx . . $ EFPPCycleInRIA#str.;
33
34 public: // interface
35 /// c'tor: create an output string
36 explicit EFPPCycleInRIAcxx . . $ EFPPCycleInRIA#EFPPCycleInRIA(9c546c94e5fcce4e). ( const stdcxx . . $ std/::stringcxx . . $ std/string#& name )
37 : EFaCTPlusPluscxx . . $ EFaCTPlusPlus#()
38 , roleNamecxx . . $ EFPPCycleInRIA#roleName.(name)
39 {
40 strcxx . . $ EFPPCycleInRIA#str. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "Role '";
41 strcxx . . $ EFPPCycleInRIA#str. +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). name;
42 strcxx . . $ EFPPCycleInRIA#str. +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). "' appears in a cyclic role inclusion axioms";
43 reasoncxx . . $ EFaCTPlusPlus#reason. = strcxx . . $ EFPPCycleInRIA#str..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).();
44 }
45
46 /// access to the role
47 const char* getRoleNamecxx . . $ EFPPCycleInRIA#getRoleName(a9f41ea0e82d88cf). ( void ) const { return roleNamecxx . . $ EFPPCycleInRIA#roleName..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); }
48 }; // EFPPCycleInRIA
49
50 #endif
51
52