KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Head.h
Go to the documentation of this file.
1 #ifndef HEAD_H_
2 #define HEAD_H_
3 
11 #include <list>
12 #include <string>
13 
14 #include "spear/RCIPtr.h"
15 
16 /* Kobus. */
17 /* The code expected this to be defined via compile line, but I am hard-coding
18  * it in for now. If we need to switch it on the fly, we should think of a
19  * different way than the compile line. Perhaps a runtime option.
20 */
21 #define LANG_ENGLISH
22 
23 #ifdef LANG_ENGLISH
24 #include "spear/HeadEnglish.h"
25 #endif
26 
27 namespace spear {
28 
34  template <typename T>
36  findHead(const String & parent,
37  const std::list< spear::RCIPtr<T> > & children) {
38 #ifdef LANG_ENGLISH
39  return findHeadEnglish<T>(parent, children);
40 #else
41 #error Head finding heuristics not implemented for this language!
42 #endif
43  }
44 
45 } // end namespace spear
46 
47 #endif /* EDGE_HEAD_H */
Reference counting pointer class This file contains the code for the classes and class templates maki...
spear::RCIPtr< T > findHead(const String &parent, const std::list< spear::RCIPtr< T > > &children)
Definition: Head.h:36
Definition: RCIPtr.h:67
#define String
Definition: Wide.h:36