source: dev/trunk/ab5.0/jenga/include/common/CmdLine.h@ 764

Last change on this file since 764 was 518, checked in by dai_9181, 17 years ago

jengaプロジェクトにプリコンパイル済みヘッダを適用した。

File size: 657 bytes
RevLine 
[518]1#pragma once
[289]2
3namespace Jenga{
4namespace Common{
5
6
7class CmdLine{
8 std::string command;
9 std::string parameter;
10public:
11
12 CmdLine( const std::string &command, const std::string &parameter )
13 : command( command )
14 , parameter( parameter )
15 {
16 }
17
[457]18 bool IsNamelessCommand() const
19 {
20 return ( command.size() == 0 );
21 }
[289]22 const std::string& GetCommand() const
23 {
24 return command;
25 }
26 const std::string& GetParameter() const
27 {
28 return parameter;
29 }
30};
31
32class CmdLines : public std::vector<CmdLine>
33{
34public:
35 CmdLines( const std::string &strCmdLine );
[291]36 bool IsExist( const std::string &commandString ) const;
[289]37};
38
39
40}}
Note: See TracBrowser for help on using the repository browser.