streamstatushandler.hpp

来自「robocup rcssbase-11.1.0(1).zip」· HPP 代码 · 共 112 行

HPP
112
字号
// -*-c++-*-

/***************************************************************************
                         streamstatushandler.hpp  
                Interface for writing parser notifactions to streams
                             -------------------
    begin                : 14-MAY-2003
    copyright            : (C) 2003 by The RoboCup Soccer Server 
                           Maintenance Group.
    email                : sserver-admin@lists.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU LGPL as published by the Free Software  *
 *   Foundation; either version 2 of the License, or (at your option) any  *
 *   later version.                                                        *
 *                                                                         *
 ***************************************************************************/

#ifndef STREAMSTATUSHANDLER_HPP
#define STREAMSTATUSHANDLER_HPP

#include "../rcssbaseconfig.hpp"
#include "statushandler.hpp"
#include <iosfwd>

namespace rcss
{
	namespace conf
	{
		class StreamStatusHandler
			: public StatusHandler
		{
		public:
			RCSSBASE_API
			StreamStatusHandler();

			RCSSBASE_API
			StreamStatusHandler( std::ostream& errstrm );
		  
			RCSSBASE_API
			virtual
			~StreamStatusHandler();

			RCSSBASE_API
			virtual
			void
			parseError( const std::string& curr,
						const std::string& err,
						const std::string& name,
						int lineno );
		  
			RCSSBASE_API
			virtual
			void
			buildError( const std::string& module,
						const std::string& param,
						const std::string& err,
						const std::string& name,
						int lineno );

			RCSSBASE_API
			virtual
			void
			buildWarning( const std::string& module,
						  const std::string& param,
						  const std::string& warn,
						  const std::string& name,
						  int lineno );

			RCSSBASE_API
			virtual
			void
			creatingConfFile( const std::string& conf_name );
		  
			RCSSBASE_API
			virtual
			void
			createdConfFile( const std::string& conf_name );
		  
			RCSSBASE_API
			virtual
			void
			confCreationFailed( const std::string& conf_name,
								int error );

			RCSSBASE_API
			virtual
			void
			includeFailed( const std::string& filename,
						   const std::string& error,
						   const std::string& name,
						   int lineno );

			RCSSBASE_API
			virtual
			void
			loadFailed( const std::string& libname,
						const std::string& error,
						const std::vector< boost::filesystem::path >& avail,
						const std::string& name,
						int lineno );
		private:
			std::ostream& m_errstrm;
		};       
	}
}

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?