Changeset 291 in dev for trunk/jenga/src/common
- Timestamp:
- Aug 21, 2007, 11:00:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/src/common/CmdLine.cpp
r289 r291 1 1 #include <jenga/include/common/CmdLine.h> 2 3 #include <boost/foreach.hpp> 2 4 3 5 using namespace Jenga::Common; … … 70 72 } 71 73 } 74 75 bool CmdLines::IsExist( const std::string &commandString ) const 76 { 77 const CmdLines &cmdLines = *this; 78 BOOST_FOREACH( const CmdLine &cmdLine, cmdLines ) 79 { 80 if( cmdLine.GetCommand() == commandString ) 81 { 82 return true; 83 } 84 } 85 return false; 86 }
Note:
See TracChangeset
for help on using the changeset viewer.