Nemiver  0.3
nmv-i-lang-trait.h
Go to the documentation of this file.
1 //Author: Dodji Seketeli
2 /*
3  *This file is part of the Nemiver project
4  *
5  *Nemiver is free software; you can redistribute
6  *it and/or modify it under the terms of
7  *the GNU General Public License as published by the
8  *Free Software Foundation; either version 2,
9  *or (at your option) any later version.
10  *
11  *Nemiver is distributed in the hope that it will
12  *be useful, but WITHOUT ANY WARRANTY;
13  *without even the implied warranty of
14  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *See the GNU General Public License for more details.
16  *
17  *You should have received a copy of the
18  *GNU General Public License along with Nemiver;
19  *see the file COPYING.
20  *If not, write to the Free Software Foundation,
21  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22  *
23  *See COPYRIGHT file copyright information.
24  */
25 #ifndef __NMV_I_LANG_TRAIT_H__
26 #define __NMV_I_LANG_TRAIT_H__
27 
28 #include "common/nmv-ustring.h"
30 #include "nmv-i-debugger.h"
31 
39 
40 NEMIVER_BEGIN_NAMESPACE (nemiver)
41 
42 class ILangTrait;
45  //non copyable
46  ILangTrait (const ILangTrait &);
47  ILangTrait& operator= (const ILangTrait &);
48 
49 protected:
50  ILangTrait (DynamicModule *a_dynmod) : DynModIface (a_dynmod)
51  {
52  }
53 
54 public:
55 
56  virtual ~ILangTrait () {}
57 
58  virtual const UString& get_name () const = 0;
59 
62  virtual bool has_pointers () const = 0;
64 
67  virtual bool is_type_a_pointer (const UString &a_type) const = 0;
68  virtual bool is_variable_compound
69  (const nemiver::IDebugger::VariableSafePtr) const = 0;
71 };//end class ILangTrait
72 
73 NEMIVER_END_NAMESPACE (nemiver)
74 
75 #endif // __NMV_I_LANG_TRAIT_H__
nemiver
Definition: nmv-address.h:31
nemiver::common::ObjectRef
Definition: nmv-safe-ptr-utils.h:45
nmv-ustring.h
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nemiver::common::DynamicModule
The base class for loadable modules.
Definition: nmv-dynamic-module.h:76
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::ILangTrait::~ILangTrait
virtual ~ILangTrait()
Definition: nmv-i-lang-trait.h:56
nemiver::common::DynModIface
Definition: nmv-dynamic-module.h:220
nmv-dynamic-module.h
nemiver::ILangTrait
Definition: nmv-i-lang-trait.h:44
nemiver::ILangTrait::ILangTrait
ILangTrait(DynamicModule *a_dynmod)
Definition: nmv-i-lang-trait.h:50
nmv-i-debugger.h
nemiver::common::ObjectUnref
Definition: nmv-safe-ptr-utils.h:55
nemiver::common::SafePtr
Definition: nmv-safe-ptr.h:71
nemiver::variables_utils2::is_type_a_pointer
bool is_type_a_pointer(const UString &a_type)