Ignore:
Timestamp:
Aug 21, 2007, 11:00:44 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/src/common/CmdLine.cpp

    r289 r291  
    11#include <jenga/include/common/CmdLine.h>
     2
     3#include <boost/foreach.hpp>
    24
    35using namespace Jenga::Common;
     
    7072    }
    7173}
     74
     75bool 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.