📄 player_command_tok.h
字号:
// -*-c++-*-/*************************************************************************** pcomlexer.h Lexer for PlayerCommands ---------------------------- begin : 27-JUN-2002 copyright : (C) 2002 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 _PCOMLEXER_H_#define _PCOMLEXER_H_#include "pcombuilder.h"// #include "tuple.h"#undef yyFlexLexer#define yyFlexLexer RCSSPComFlexLexer#include <rcssbase/FlexLexer.h>class RCSSPComLexer : public RCSSPComFlexLexer{ public:// typedef rcss::util::Tuple10< int,// double,// std::string,// bool,// rcss::pcom::VIEW_WIDTH,// rcss::pcom::VIEW_QUALITY,// rcss::pcom::TEAM,// rcss::pcom::EAR_MODE// > Holder; union Holder { enum { STR_MAX = 8192 }; int m_int; double m_double; char m_str[ STR_MAX ]; bool m_bool; rcss::pcom::VIEW_WIDTH m_view_w; rcss::pcom::VIEW_QUALITY m_view_q; rcss::pcom::TEAM m_team; rcss::pcom::EAR_MODE m_ear; }; virtual int yylex(); // defined in player_command_tok.cc inline int lex( Holder& holder ) { M_lexed_val = &holder; return yylex(); } private: Holder* M_lexed_val;};namespace rcss{ namespace pcom { typedef RCSSPComLexer Lexer; }}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -