Otawa  0.10
Unmangler.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * Unmangler class interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2011, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 #ifndef OTAWA_CPP_UNMANGLER_H
23 #define OTAWA_CPP_UNMANGLER_H
24 
25 #include <elm/string.h>
26 #if defined(__WIN32) || defined(__WIN64)
27 #include <elm/util/MessageException.h>
28 #endif
29 
30 namespace otawa { namespace cpp {
31 
32 using namespace elm;
33 
35 public:
36  UnmanglingException(string message): MessageException(message) { }
37 };
38 
39 class Unmangler {
40 public:
41  static Unmangler& base;
42  virtual string unmangle(const string& name) throw(UnmanglingException) = 0;
43 };
44 
45 } } // otawa::cpp
46 
47 #endif // OTAWA_CPP_UNMANGLER_H
48 
UnmanglingException(string message)
Definition: Unmangler.h:36
Definition: Unmangler.h:39
static Unmangler & base
Definition: Unmangler.h:41
cstring name
Definition: odisasm.cpp:107
Definition: Unmangler.h:34