当前位置: 首页>>代码示例>>C++>>正文


C++ STRING::IsEqual方法代码示例

本文整理汇总了C++中STRING::IsEqual方法的典型用法代码示例。如果您正苦于以下问题:C++ STRING::IsEqual方法的具体用法?C++ STRING::IsEqual怎么用?C++ STRING::IsEqual使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在STRING的用法示例。


在下文中一共展示了STRING::IsEqual方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: if

      virtual VALUE<CELLADAPTER> ceefit_call_spec GetType(const STRING& name)
      {
        CELLADAPTER* type = null;

        if(name.IsEqual("boolean"))
        {
          type = new FITFIELD<bool>();
        }
        else if(name.IsEqual("integer"))
        {
          type = new FITFIELD<signed int>();
        }
        else if(name.IsEqual("real"))
        {
          type = new FITFIELD<float>();
        }
        else if(name.IsEqual("string"))
        {
          type = new FITFIELD<STRING>();
        }
            //name.equals("date") ?       Date.class :
        else if(name.IsEqual("money"))
        {
          type = new FITFIELD< CEEFAT::MONEY >();
        }
        else if(name.IsEqual("scientific"))
        {
          type = new FITFIELD< SCIENTIFICDOUBLE >();
        }
        else if(name.IsEqual("integers"))
        {
          type = new FITFIELD< DYNARRAY<int> >();
        }
        else if(name.IsEqual("booleans"))
        {
          type = new FITFIELD< DYNARRAY<bool> >();
        }
        else if(name.IsEqual("strings"))
        {
          type = new FITFIELD< DYNARRAY<STRING> >();
        }
        if (type == null)
        {
          throw new EXCEPTION(STRING("Unimplemented choice ") + name);
        }
        
        return(VALUE<CELLADAPTER>(type));
      }
开发者ID:juherr,项目名称:fit,代码行数:48,代码来源:Equals.cpp

示例2: CreateFixtureByAlias

  void ceefit_call_spec FIXTURE::CreateFixtureByAlias(PTR<FIXTURE>& out, const STRING& aAlias)
  {
    SLINKLIST<FIXTUREFACTORY>& aList = RUNNER::GetFixtureFactoryList();

    FIXTUREFACTORY* aFactory = aList.GetHead();
    while(aFactory != null)
    {
      const char* bAlias = aFactory->GetAlias();
      if(bAlias != null && aAlias.IsEqual(bAlias))
      {
        aFactory->CreateFixture(out);
        return;
      }
      aFactory = aFactory->GetNext();
    }

    out = null;
  }
开发者ID:juherr,项目名称:fit,代码行数:18,代码来源:Fixture.cpp

示例3: CreateFixtureByClassName

  void ceefit_call_spec FIXTURE::CreateFixtureByClassName(PTR<FIXTURE>& out, const STRING& className)
  {
    SLINKLIST<FIXTUREFACTORY>& aList = RUNNER::GetFixtureFactoryList();

    FIXTUREFACTORY* aFactory = aList.GetHead();
    while(aFactory != null)
    {
      const char* aName = aFactory->GetName();
      if(aName != null && className.IsEqual(aName))
      {
        aFactory->CreateFixture(out);
        return;
      }
      aFactory = aFactory->GetNext();
    }

    out = null;
  }
开发者ID:juherr,项目名称:fit,代码行数:18,代码来源:Fixture.cpp


注:本文中的STRING::IsEqual方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。