00001 /** 00002 * @file Xabsl2Agent.h 00003 * 00004 * Definition of class Xabsl2Agent 00005 * 00006 * @author Martin Lötzsch 00007 */ 00008 00009 #ifndef __Xabsl2Agent_h_ 00010 #define __Xabsl2Agent_h_ 00011 00012 #include "Xabsl2Option.h" 00013 00014 /** 00015 * @class Xabsl2Agent 00016 * 00017 * Combines some options to an agent 00018 * 00019 * @author Martin Lötzsch 00020 */ 00021 class Xabsl2Agent : public Xabsl2NamedItem 00022 { 00023 public: 00024 /** 00025 * Constructor 00026 * @param name The name of the agent 00027 * @param rootOption A pointer to the initial option of the agent 00028 * @param errorHandler Is invoked when errors occur 00029 */ 00030 Xabsl2Agent(const char* name, Xabsl2Option* rootOption, 00031 Xabsl2ErrorHandler& errorHandler); 00032 00033 /** Returns the root option */ 00034 Xabsl2Option* getRootOption() const; 00035 private: 00036 00037 /** A pointer to the root option */ 00038 Xabsl2Option* rootOption; 00039 00040 /** Is invoked when errors occur */ 00041 Xabsl2ErrorHandler& errorHandler; 00042 }; 00043 00044 #endif // __Xabsl2Agent_h_ 00045 00046 /* 00047 * Change Log: 00048 * 00049 * $Log: Xabsl2Agent.h,v $ 00050 * Revision 1.1.1.1 2004/05/22 17:37:53 cvsadm 00051 * created new repository GT2004_WM 00052 * 00053 * Revision 1.1 2003/10/07 10:13:25 cvsadm 00054 * Created GT2004 (M.J.) 00055 * 00056 * Revision 1.2 2003/09/30 10:51:10 dueffert 00057 * typos fixed 00058 * 00059 * Revision 1.1.1.1 2003/07/02 09:40:29 cvsadm 00060 * created new repository for the competitions in Padova from the 00061 * tamara CVS (Tuesday 2:00 pm) 00062 * 00063 * removed unused solutions 00064 * 00065 * Revision 1.2 2003/01/11 14:41:42 loetzsch 00066 * continued creation of the option tree 00067 * 00068 * Revision 1.1 2003/01/09 17:28:33 loetzsch 00069 * introduced Xabsl2Agent, continued Xabsl2Option 00070 * 00071 */