Main Page | Modules | Namespace List | Compound List | File List | Compound Members | File Members | Related Pages

JVerbalFlexion Class Reference
[LeJa]

deals with the rules of grammar input More...

#include <Flexform.h>

List of all members.

Public Member Functions

 JVerbalFlexion ()
 default constructor

 JVerbalFlexion (const string *, const int)
 more realistic constructor

 JVerbalFlexion (const string *vform, const int stufe, vflexform vflex, string &name, string &flxart, string &rqflxart)
 complete constructor

 ~JVerbalFlexion ()
 default destructor

void SetName (string &nm)
 sets value of member variable m_name

void SetReqForm (vflexform af)
 sets value of member variable m_reqform

void AddReqFlex (string &af)
 adds required flexform to vector m_reqflexart

void SetFlex (string &f)
 sets value of member variable m_flexart

void GetName (string &name)
 returns name

string GetName ()
 returns member m_name

int GetStufe ()
 returns level

void GetStufe (int &stufe)
 returns returns level

void GetReqForm (vflexform &reqform)
 returns required flexform

vflexform GetReqForm ()
 returns required flexform

string & GetFlexArt ()
 returns required kind of flexation

vector< string > GetReqFlexArt ()
 returns required flexform

void Print ()
 prints the loaded flexation to stdout

void PrintName ()
 prints the name flexation to stdout (obsolete)

vflexform GetFormOfString (string &str)
 lookup in the map of strings and forms

string GetStringOfForm (vflexform)
 lookup in the map of strings and forms

bool IsStringOfForm (string &str, vflexform vf)
 checks string and form in specification


Private Types

typedef vector< string
>::const_iterator 
VIT
typedef map< vflexform, string
>::const_iterator 
IT

Private Attributes

int m_level
string m_name
vflexform m_reqform
string m_flexart
vector< string > m_reqflexart
map< vflexform, string > m_vflexform


Detailed Description

deals with the rules of grammar input

Author:
Iris Vogel iris@urz.uni-heidelberg.de
Date:
Aug 2003
Version:
0.8/15
See also:
JVerbalFlexion.h

Todo:
to make modifikations in the grammar easier the flexation forms could be read from the dtd, but for Japanese this hardly neccessary


Member Typedef Documentation

typedef map<vflexform, string>::const_iterator JVerbalFlexion::IT [private]
 

iterator for m_vflexform member variable

typedef vector<string>::const_iterator JVerbalFlexion::VIT [private]
 


Constructor & Destructor Documentation

JVerbalFlexion::JVerbalFlexion  ) 
 

default constructor

sets member variables to default values

JVerbalFlexion::JVerbalFlexion const string *  vform,
const int  stufe
 

more realistic constructor

sets the value pair for the flexation

Parameters:
vform pointer to kind of flexation
level of the flexation

JVerbalFlexion::JVerbalFlexion const string *  vform,
const int  stufe,
vflexform  vflex,
string &  name,
string &  flxart,
string &  rqflxart
 

complete constructor

sets values of all the member variables

Parameters:
vform 
stufe 
vflex 
name 
flxart 
rqflxart 

JVerbalFlexion::~JVerbalFlexion  ) 
 

default destructor


Member Function Documentation

void JVerbalFlexion::AddReqFlex string &  af  )  [inline]
 

adds required flexform to vector m_reqflexart

string& JVerbalFlexion::GetFlexArt  )  [inline]
 

returns required kind of flexation

Returns:
value of m_reqart member variable

vflexform JVerbalFlexion::GetFormOfString string &  str  ) 
 

lookup in the map of strings and forms

Parameters:
str the string to look for
Returns:
the form of the string, OOR if not found

string JVerbalFlexion::GetName  )  [inline]
 

returns member m_name

Returns:
value of m_name member variable

void JVerbalFlexion::GetName string &  name  )  [inline]
 

returns name

Parameters:
name string reference to store name

vector<string> JVerbalFlexion::GetReqFlexArt  )  [inline]
 

returns required flexform

Returns:
value of m_reqform member variable

vflexform JVerbalFlexion::GetReqForm  )  [inline]
 

returns required flexform

Returns:
reqform carries value of m_reqform member variable

void JVerbalFlexion::GetReqForm vflexform reqform  )  [inline]
 

returns required flexform

Parameters:
reqform carries value of m_reqform member variable

string JVerbalFlexion::GetStringOfForm vflexform  vf  ) 
 

lookup in the map of strings and forms

Parameters:
vf the form to look for
Returns:
the string in the apropriate form

void JVerbalFlexion::GetStufe int &  stufe  )  [inline]
 

returns returns level

Parameters:
stufe int to store level

int JVerbalFlexion::GetStufe  )  [inline]
 

returns level

Returns:
value of m_level member variable

bool JVerbalFlexion::IsStringOfForm string &  str,
vflexform  vf
 

checks string and form in specification

Parameters:
vf the form to look for
str the string
Returns:
true, if string and form are confirmed, false if not

void JVerbalFlexion::Print  ) 
 

prints the loaded flexation to stdout

void JVerbalFlexion::PrintName  ) 
 

prints the name flexation to stdout (obsolete)

void JVerbalFlexion::SetFlex string &  f  )  [inline]
 

sets value of member variable m_flexart

void JVerbalFlexion::SetName string &  nm  )  [inline]
 

sets value of member variable m_name

void JVerbalFlexion::SetReqForm vflexform  af  )  [inline]
 

sets value of member variable m_reqform


Member Data Documentation

string JVerbalFlexion::m_flexart [private]
 

kind of flexation (corresponds to 'verbflex form' attribut in XML grammar file)

int JVerbalFlexion::m_level [private]
 

level (corresponds to 'Position' in XML grammar file)

string JVerbalFlexion::m_name [private]
 

name (corresponds to 'name'in XML grammar file)

vector<string> JVerbalFlexion::m_reqflexart [private]
 

requires kind of flexation (corresponds to 'reqform' in XML grammar file)

vflexform JVerbalFlexion::m_reqform [private]
 

required flexform in next lower level (corresponds to 'req_form'in XML grammar file)

map<vflexform, string> JVerbalFlexion::m_vflexform [private]
 

a map to store the flexform and corresponding string


The documentation for this class was generated from the following files:
Generated on Mon Aug 18 19:27:10 2003 for LeJa by doxygen 1.3.3