source: dev/trunk/jenga/include/common/CmdLine.h@ 387

Last change on this file since 387 was 291, checked in by dai_9181, 17 years ago
File size: 607 bytes
RevLine 
[289]1#include <vector>
2#include <string>
3
4
5namespace Jenga{
6namespace Common{
7
8
9class CmdLine{
10 std::string command;
11 std::string parameter;
12public:
13
14 CmdLine( const std::string &command, const std::string &parameter )
15 : command( command )
16 , parameter( parameter )
17 {
18 }
19
20 const std::string& GetCommand() const
21 {
22 return command;
23 }
24 const std::string& GetParameter() const
25 {
26 return parameter;
27 }
28};
29
30class CmdLines : public std::vector<CmdLine>
31{
32public:
33 CmdLines( const std::string &strCmdLine );
[291]34 bool IsExist( const std::string &commandString ) const;
[289]35};
36
37
38}}
Note: See TracBrowser for help on using the repository browser.