Last change
on this file since 764 was 518, checked in by dai_9181, 17 years ago |
jengaプロジェクトにプリコンパイル済みヘッダを適用した。
|
File size:
657 bytes
|
Rev | Line | |
---|
[518] | 1 | #pragma once
|
---|
[289] | 2 |
|
---|
| 3 | namespace Jenga{
|
---|
| 4 | namespace Common{
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | class CmdLine{
|
---|
| 8 | std::string command;
|
---|
| 9 | std::string parameter;
|
---|
| 10 | public:
|
---|
| 11 |
|
---|
| 12 | CmdLine( const std::string &command, const std::string ¶meter )
|
---|
| 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 |
|
---|
| 32 | class CmdLines : public std::vector<CmdLine>
|
---|
| 33 | {
|
---|
| 34 | public:
|
---|
| 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.