Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

TRuleSystem::tError Struct Reference

#include <rulesystem.h>

List of all members.

Public Methods

 tError ()
 tError (const tError &err)
 tError (const string &r, const string &m)
void set (const string &r, const string &m)

Public Attributes

string rule
string module


Detailed Description

A structure to save an dependency error. A dependency is always of the type that a rule atom requires a module. If the module does not exist, the checkDependency method stores this information in tError. The description of TRuleAtom contains more information about dependencies. If one entry is empty (that means rule=="" or module==-1) this means that there is a missing module or rule atom. Examples:

  1. rule="", module=TRuleSystem::FLEET: the module "fleet" has no reasonable value.
  2. rule="fleet_movement", module=TRuleSystem::NONE: the rule atom "fleet_movement" has no reasonable value.
  3. rule="item_access", module=TRuleSystem::RACE: the used implementation for the rule "item_access" is not satisfied with the module "race". You have to use a different rule system for that module, but note: there is no hint which rule system for the module is compatible with the rule atom.


Member Data Documentation

string TRuleSystem::tError::module
 

a module, e.g. "fleet"

string TRuleSystem::tError::rule
 

The rule that needs a certain module.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 20 18:13:30 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001