00001 /*************************************************************************** 00002 handlercontext.h - description 00003 ------------------- 00004 begin : mar avr 11 2006 00005 copyright : (C) 2006 by 00006 - Sylvain Archenault <sylvain.archenault@laposte.net> 00007 - Yves Houpert <yves.houpert@insa-rouen.fr> 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ***************************************************************************/ 00019 00020 #ifndef HANDLERCONTEXT_H 00021 #define HANDLERCONTEXT_H 00022 00023 #include "structurehandler.h" 00024 00032 class HandlerContext{ 00033 public: 00038 HandlerContext(int iDepth, StructureHandler* pHandler); 00039 00041 ~HandlerContext(); 00042 00046 int getDepth() const { return m_iDepth; } 00047 00052 StructureHandler* getHandler() const { return m_pHandler; } 00053 00054 protected: 00056 StructureHandler* m_pHandler; 00058 int m_iDepth; 00059 }; 00060 00061 #endif
1.4.6