File: LocNode.h

package info (click to toggle)
openjade 1.4devel1-21.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,356 kB
  • ctags: 15,077
  • sloc: cpp: 90,082; sh: 8,314; ansic: 1,793; lisp: 894; perl: 604; makefile: 392; sed: 93
file content (41 lines) | stat: -rw-r--r-- 830 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) 1997 James Clark
// See the file COPYING for copying permission.

#ifndef LocNode_INCLUDED
#define LocNode_INCLUDED 1

#include <OpenSP/Boolean.h>
#include "Node.h"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

class Location;

#ifdef GROVE_NAMESPACE
#define GROVE_NAMESPACE_SCOPE GROVE_NAMESPACE::
#else
#define GROVE_NAMESPACE_SCOPE
#endif

class GROVE_API LocNode {
public:
  virtual GROVE_NAMESPACE_SCOPE AccessResult getLocation(Location &) const = 0;
  static const GROVE_NAMESPACE_SCOPE Node::IID iid;
  static const LocNode *convert(const GROVE_NAMESPACE_SCOPE NodePtr &nd) {
    const void *p;
    if (nd && nd->queryInterface(iid, p))
      return (const LocNode *)p;
    else
      return 0;
  }
};

#undef GROVE_NAMESPACE_SCOPE

#ifdef SP_NAMESPACE
}
#endif

#endif /* not LocNode_INCLUDED */