Main Page | Class Hierarchy | Class List | File List | Class Members

reftype.h

00001 /* libIXAml - IXA Taldea */
00002 
00003 #ifndef _REFTYPE_H
00004 #define _REFTYPE_H
00005 
00006 #include <vector>
00007 #include <string>
00008 
00012 typedef enum RefTypeEnum {
00013   dokRef         = 0,            
00014   corpusDokRef   = 1,            
00015   wDokRef        = 2,            
00016   mwDokRef       = 3,            
00017   lnkDokRef      = 4,            
00018   fsDokRef       = 5,            
00019   edblDokRef     = 6,            
00020   fSintLibRef    = 7,            
00021   lemFSintRef    = 8,            
00022   lemFSintSetRef = 9,            
00023   spanDokRef     = 10,           
00024   chunkDokRef    = 11,           
00025   entDokRef      = 12,           
00026   posDokRef      = 13,           
00027   shSyntLibRef   = 14,           
00028   entLibRef      = 15,           
00029   posLibRef      = 16,           
00030   depDokRef      = 17,           
00031   depLibDokRef   = 18,           
00032   errDokRef      = 19,           
00033   treeSetDokRef  = 20,           
00034   verbLibDokRef  = 21            
00036 };
00037 
00041 class RefType {
00042   RefTypeEnum type;
00043   static std::vector<std::string> Type2Str;
00044   static std::vector<std::string> getType2Str();
00045 
00046  public:
00047 
00049   RefType();
00050   
00054   RefType(const RefTypeEnum & rte);
00055   
00059   RefType(const std::string & str);
00060   
00064   RefType(const RefType & rt);
00065 
00069   bool operator == (const RefType & rt) const;
00070   
00074   void putType(const RefTypeEnum & rte);
00075 
00079   void putType(const std::string & s);
00080 
00084   std::string str() const;
00085 
00086 };
00087 
00088 #endif //_REFTYPE_H

Generated on Tue Sep 11 12:07:44 2007 for libIXAml by doxygen 1.3.5