Changeset 291 in dev for trunk


Ignore:
Timestamp:
Aug 21, 2007, 11:00:44 PM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/jenga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/common/CmdLine.h

    r289 r291  
    3232public:
    3333    CmdLines( const std::string &strCmdLine );
     34    bool IsExist( const std::string &commandString ) const;
    3435};
    3536
  • trunk/jenga/include/smoothie/BasicFixed.h

    r205 r291  
    5454
    5555//特殊型
    56 #define DEF_ANY         0x00000015
    57 #define DEF_OBJECT      0x00000016
    58 #define DEF_STRUCT      0x00000017
    59 #define DEF_ELLIPSE     0x00000018
     56#define DEF_ANY                     0x00000015
     57#define DEF_ELLIPSE                 0x00000016
     58#define DEF_OBJECT                  0x00000017      // クラス
     59#define DEF_STRUCT                  0x00000018      // 構造体
     60#define DEF_TYPE_PARAMETER          0x00000019      // 型パラメータ(ジェネリクスサポート)
    6061
    6162//ポインタ型
  • 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.