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

robutils.h

Go to the documentation of this file.
00001 /*
00002  * robutils.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00020 #ifndef __RT_ROBUTILS__
00021 #define __RT_ROBUTILS__
00022 
00023 #include <rtsystem.h>
00024 
00025 namespace rt {
00026 
00030 class NoBreakSection {
00031 public: // static:
00032         static void breakHandler(lrt::System::BreakType type);
00033 public:
00035         NoBreakSection(bool ignoreBreak = false);
00037         ~NoBreakSection();
00038 
00040         void enter();
00043         void leave();
00044 
00045 private: // static:
00046         static bool breakOccured; // was there a break inside the section?
00047         static NoBreakSection* inside; // are we inside a section? if yes, it's that one
00048 private:
00049         bool ignoreBreak; 
00050 };
00051 
00052 }; // namespace
00053 
00054 #endif

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer