LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
clang_info_message.h
Go to the documentation of this file.
1// -*-c++-*-
2
8/*
9 *Copyright:
10
11 Copyright (C) Hidehisa AKIYAMA
12
13 This code is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Lesser General Public
15 License as published by the Free Software Foundation; either
16 version 3 of the License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public
24 License along with this library; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27 *EndCopyright:
28 */
29
31
32#ifndef RCSC_CLANG_INFO_MESSAGE_H
33#define RCSC_CLANG_INFO_MESSAGE_H
34
37
38namespace rcsc {
39
45 : public CLangMessage {
46private:
47
49 CLangToken::Cont M_tokens;
50
51public:
52
58 { }
59
64 virtual
66 {
67 return CLANG_INFO;
68 }
69
74 virtual
75 const char * typeName() const
76 {
77 return "info";
78 }
79
84 const CLangToken::Cont & tokens() const
85 {
86 return M_tokens;
87 }
88
93 void addToken( CLangToken * tok )
94 {
95 M_tokens.push_back( CLangToken::ConstPtr( tok ) );
96 }
97
103 virtual
104 std::ostream & print( std::ostream & os ) const;
105
106};
107
108}
109
110#endif
CLangType
clang message types
Definition: types.h:41
abstract clang message class Header File
clang token class Header File
info message
Definition: clang_info_message.h:45
const CLangToken::Cont & tokens() const
get token container.
Definition: clang_info_message.h:84
CLangInfoMessage()
construct with created time
Definition: clang_info_message.h:57
void addToken(CLangToken *tok)
add new token.
Definition: clang_info_message.h:93
virtual std::ostream & print(std::ostream &os) const
print clang message to the output stream
virtual CLangType type() const
get message type id.
Definition: clang_info_message.h:65
virtual const char * typeName() const
get message type name.
Definition: clang_info_message.h:75
abstract clang message
Definition: clang_message.h:46
abstract clang token
Definition: clang_token.h:48
std::shared_ptr< const CLangToken > ConstPtr
smart pointer type
Definition: clang_token.h:52