Debian Codegraph @

Kernel/eFPPNonSimpleRole.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 EFPPNONSIMPLEROLE_H
21 #define EFPPNONSIMPLEROLE_Hcxx . . $ `Kernel/eFPPNonSimpleRole.h:21:9`!
22
23 #include "eFaCTPlusPlus.h"cxx . . $ `<file>/Kernel/eFaCTPlusPlus.h`/
24
25 /// exception thrown in case non-simple role used where only simple role can be used
26 class EFPPNonSimpleRolecxx . . $ EFPPNonSimpleRole#: public EFaCTPlusPluscxx . . $ EFaCTPlusPlus#
27 {
28 private: // members
29 /// saved name of the role
30 const stdcxx . . $ std/::stringcxx . . $ std/string# roleNamecxx . . $ EFPPNonSimpleRole#roleName.;
31 /// error string
32 stdcxx . . $ std/::stringcxx . . $ std/string# strcxx . . $ EFPPNonSimpleRole#str.;
33
34 public: // interface
35 /// c'tor: create an output string
36 explicit EFPPNonSimpleRolecxx . . $ EFPPNonSimpleRole#EFPPNonSimpleRole(9c546c94e5fcce4e). ( const stdcxx . . $ std/::stringcxx . . $ std/string#& name )
37 : EFaCTPlusPluscxx . . $ EFaCTPlusPlus#()
38 , roleNamecxx . . $ EFPPNonSimpleRole#roleName.(name)
39 {
40 strcxx . . $ EFPPNonSimpleRole#str. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "Non-simple role '";
41 strcxx . . $ EFPPNonSimpleRole#str. +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). name;
42 strcxx . . $ EFPPNonSimpleRole#str. +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). "' is used as a simple one";
43 reasoncxx . . $ EFaCTPlusPlus#reason. = strcxx . . $ EFPPNonSimpleRole#str..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).();
44 }
45
46 /// access to the role
47 const char* getRoleNamecxx . . $ EFPPNonSimpleRole#getRoleName(a9f41ea0e82d88cf). ( void ) const { return roleNamecxx . . $ EFPPNonSimpleRole#roleName..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); }
48 }; // EFPPNonSimpleRole
49
50 #endif
51
52