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


C++ AcStringArray::append方法代码示例

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


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

示例1: regPropertyDataNames

void WGFPBlockDraw::regPropertyDataNames( AcStringArray& names ) const
{
    names.append( _T( "绝对瓦斯涌出量" ) );
    names.append( _T( "相对瓦斯涌出量" ) );
    names.append( _T( "工作面日产量" ) );
    names.append( _T( "回采年月" ) );
}
开发者ID:kanbang,项目名称:myexercise,代码行数:7,代码来源:GFPBlockDraw.cpp

示例2: regPropertyDataNames

void CDHBlockDraw::regPropertyDataNames( AcStringArray& names ) const
{
    names.append( _T( "¿×ºÅ" ) );
    names.append( _T( "µØÃæ±ê¸ß" ) );
    names.append( _T( "ú²ãµ×°å±ê¸ß" ) );
    names.append( _T( "úºñ" ) );
}
开发者ID:kanbang,项目名称:myexercise,代码行数:7,代码来源:CDHBlockDraw.cpp

示例3: GetDatasFromList

static void GetDatasFromList(const CGridListCtrlGroups& listCtrl,AcStringArray& strName,AcStringArray& strIsRunning,AcStringArray& strReason,int num)
{
	for(size_t i = 0; i < num; i++)
	{
		CString	name = listCtrl.GetItemText(i,1);
		if (name.IsEmpty())
		{
			name = ISNULL;
		}
		strName.append(name);
		CString isRunning = listCtrl.GetItemText(i,2);
		if (isRunning.IsEmpty())
		{
			isRunning = ISNULL;
		}
		strIsRunning.append(isRunning);
		CString reason = listCtrl.GetItemText(i,3);
		if (reason.IsEmpty())
		{
			reason = ISNULL;
		}

		strReason.append(reason);
		//acutPrintf(_T("\n第%d行数据:%s\t%s\t%s"),i+1,strName,isRunning,strReason);
	}
}
开发者ID:wyrover,项目名称:GDES,代码行数:26,代码来源:GasSysDlg.cpp

示例4: regPropertyDataNames

void CSDCIBlockDraw::regPropertyDataNames( AcStringArray& names ) const
{
    names.append( _T( "瓦斯放散初速度" ) );
    names.append( _T( "煤的坚固性系数" ) );
    // 实际只有2个字段,该字段并不存在!!!
    // 注册一个不存在的字段,返回值为""
    names.append( _T( "瓦斯突出危险性综合指标K值" ) );
}
开发者ID:kanbang,项目名称:myexercise,代码行数:8,代码来源:DCIBlockDraw.cpp

示例5: WriteDatas

void ReportDataHelper::WriteDatas( const CString& name,const ArrayVector& datas )
{
	AcDbObjectId objId;
	GDESDataObjectHelper::GetObjectId(name,objId);
	AcStringArray values;
	for(int i = 0; i < datas[0].length();i++)
	{
		for(int j = 0; j < datas.size(); j++)
		{
			values.append(datas[j][i]);
			values.append(_T("$"));
		}
	}
	SetObjectDatas(objId,values);
}
开发者ID:wyrover,项目名称:GDES,代码行数:15,代码来源:ReportDataHelper.cpp

示例6: ReadTableDatas

static BOOL ReadTableDatas(const CString& itemName,AcStringArray& names,AcStringArray& datas)
{
	names.removeAll();
	datas.removeAll();
	ArrayVector dataVector;
	ReportDataHelper::ReadDatas(itemName,dataVector,2);
	if(dataVector.empty()) return FALSE;
	for(int i = 0; i < dataVector.size(); i++)
	{
		names.append(dataVector[i][0]);
		datas.append(dataVector[i][1]);
	}
	return TRUE;

}
开发者ID:wyrover,项目名称:GDES,代码行数:15,代码来源:CreatReport.cpp

示例7: ExcludePath

static CString ExcludePath( const CString& supportPath, const CString& arxPath )
{
    AcStringArray cc;
    SplitCString( supportPath, _T( ";" ), cc );

    AcStringArray paths;

    int n = cc.length();
    for( int i = 0; i < n; i++ )
    {
        if( cc[i].compareNoCase( arxPath ) == 0 ) continue;
        paths.append( cc[i] );
    }

    CString path;
    n = paths.length();
    for( int i = 0; i < n; i++ )
    {
        if( i == n - 1 )
        {
            path.AppendFormat( _T( "%s" ), paths[i].kACharPtr() );
        }
        else
        {
            path.AppendFormat( _T( "%s;" ), paths[i].kACharPtr() );
        }
    }
    return path;
}
开发者ID:kanbang,项目名称:myexercise,代码行数:29,代码来源:Utils.cpp

示例8: ReadDatas

void ReportDataHelper::ReadDatas( const CString& name, ArrayVector& datasVector,int unitCount )
{
	AcStringArray getDatas;
	AcDbObjectId objId;
	GDESDataObjectHelper::GetObjectId(name,objId);
	GetObjectDatas(objId,getDatas);
	//AcStringArray strName,strIsRunning,strReason;
	ArrayVector datas;
	int nCount = getDatas.length();
	if(nCount <= 0) return;
	datas.resize( unitCount );
	for(int i = 0;  i < nCount; i = i+2 )
	{
		int j = (i/2)% unitCount;
		datas[j].append(getDatas[i]);
	}

	datasVector.clear();
	for(int i = 0; i < nCount / (2 * unitCount); i++)
	{
		CString temp;
		AcStringArray temps;
		for(int j = 0; j < unitCount; j++)
		{
			temp.Format(_T("%s"),datas[j][i].kACharPtr());
			if(temp == ISNULL) temp = _T("");
			temps.append(temp);
		}
		datasVector.push_back(temps);
	}
}
开发者ID:wyrover,项目名称:GDES,代码行数:31,代码来源:ReportDataHelper.cpp

示例9: GetArxClassTypes

// 查找从根类型派生的图元
void ArxClassHelper::GetArxClassTypes( const CString& root, AcStringArray& types, bool findAbstractType )
{
    // 如果根类型不存在,默认为AcDbObject
    AcRxClass* pParentClass = AcRxClass::cast( acrxClassDictionary->at( root ) );
    if( pParentClass == 0 ) pParentClass = AcDbObject::desc();

    AcRxDictionaryIterator* iter = acrxClassDictionary->newIterator();
    if( iter == 0 ) return;

    for( ; !iter->done(); iter->next() )
    {
        AcRxClass* pClass;
        if( ( pClass = AcRxClass::cast( iter->object() ) ) != NULL )
        {
            if( pClass->isDerivedFrom( pParentClass ) )
            {
                const ACHAR* text = pClass->name();
                if( text == NULL ) continue;

                if( !findAbstractType && ( pClass->dxfName() == NULL ) || ( pClass->appName() == NULL ) ) continue;

                //acutPrintf(_T("appName:%s\ndxfName:%s\nname:%s\n"), pClass->appName(), pClass->dxfName(), pClass->name());
                types.append( text );
            }
        }
    }
    delete iter;
}
开发者ID:kanbang,项目名称:TIDS,代码行数:29,代码来源:ArxClassHelper.cpp

示例10: ReadDataFromFile

static BOOL ReadDataFromFile(const CString& txtName,AcStringArray& names,AcStringArray& isRunings,AcStringArray& resons)
{
	names.removeAll();
	isRunings.removeAll();
	resons.removeAll();
	ArrayVector dataVector;
	ReportDataHelper::ReadDatas(txtName,dataVector,3);
	if(dataVector.empty()) return FALSE;
	for(int i = 0; i < dataVector.size(); i++)
	{
		names.append(dataVector[i][0]);
		isRunings.append(dataVector[i][1]);
		resons.append(dataVector[i][2]);
	}
	return TRUE;
}
开发者ID:wyrover,项目名称:GDES,代码行数:16,代码来源:CreatReport.cpp

示例11: GetIntStrList

bool IntStrListHelper::GetIntStrList( const CString& name, AcDbIntArray& intList, AcStringArray& strList )
{
    AcStringArray entries;
    if( !ArxDictHelper::GetAllEntries( INT_LIST_DICT, name, entries ) ) return false;

    int len = entries.length();
    bool ret = ( len > 0 && len % 2 == 0 );
    if( ret ) // 长度必须为偶数
    {
        intList.removeAll();
        strList.removeAll();

        for( int i = 0; i < len; i++ )
        {
            if( i % 2 == 0 ) // 偶数位置的元素为整数
            {
                intList.append( _ttoi( entries[i].kACharPtr() ) );
            }
            else       // 奇数位置的元素为字符串
            {
                strList.append( entries[i] );
            }
        }
    }
    return ret;
}
开发者ID:yuechuanbingzhi163,项目名称:GDES,代码行数:26,代码来源:DataListHelper.cpp

示例12: ShowRetDlg

static BOOL ShowRetDlg()
{
	ResultDlg retDlg;
	AcStringArray datas;
	datas.append(_T("目前矿井瓦斯抽采系统正常运转,能保证生产接续"));
	datas.append(_T("建立了部分部分瓦斯抽采系统,无法保证生产接续"));
	datas.append(_T("没有建立地面固定瓦斯抽采系统"));
	datas.append(_T("其他"));
	retDlg.setItemDatas(datas);

	IntArray trueIndxs;
	trueIndxs.push_back(0);
	trueIndxs.push_back(1);
	retDlg.setTrueIndex(trueIndxs,RET_GASSYS_OBJCT_NAME,DESC_GASSYS_OBJCT_NAME);

	AcStringArray bookMks;
	bookMks.append(_T("GasSys_Ret"));
	bookMks.append(_T("GasSys_Method"));
	bookMks.append(_T("GasSys_Conclusion"));
	bookMks.append(_T("GasSys_YesOrNo"));
	retDlg.setBookMarks(bookMks);

	if(IDOK == retDlg.DoModal()) 
	{
		return TRUE;
	}
	else return FALSE;
}
开发者ID:wyrover,项目名称:GDES,代码行数:28,代码来源:GasSysDlg.cpp

示例13: SplitCString

static void SplitCString( const CString& content, const CString& token, AcStringArray& cc )
{
    int curPos = 0;
    CString str = content.Tokenize( token, curPos );
    while ( str != _T( "" ) )
    {
        cc.append( str );
        str = content.Tokenize( token, curPos );
    };
}
开发者ID:kanbang,项目名称:myexercise,代码行数:10,代码来源:Utils.cpp

示例14: getAllGEDrawsByGEType

void MineGEDrawManager::getAllGEDrawsByGEType( const CString& geType, AcStringArray& drawList )
{
    GEDrawMap::iterator itr = m_drawMap.find( geType );
    if( itr == m_drawMap.end() ) return;

    MineGEDrawInfoList& temp_draw_list = itr->second.m_drawInfoList;
    for( MineGEDrawInfoList::iterator itr = temp_draw_list.begin(); itr != temp_draw_list.end(); itr++ )
    {
        drawList.append( itr->pDraw->isA()->name() );
    }
}
开发者ID:kanbang,项目名称:myexercise,代码行数:11,代码来源:MineGEDrawManager.cpp

示例15: OnBnClickedEnsure

void GasSysDlg::OnBnClickedEnsure()
{
	UpdateData(TRUE);
	AcStringArray strName,strIsRunning,strReason;
	//从列表中获取数据
	GetDatasFromList(m_permCListCtrl,strName,strIsRunning,strReason,_ttoi(m_numPermSys));
	ArrayVector datas;
	datas.push_back(strName);
	datas.push_back(strIsRunning);
	datas.push_back(strReason);
	//把数据写到数据词典中
	ReportDataHelper::WriteDatas(PERMENT_OBJCT_NAME,datas);

	AcStringArray gasSysNams;
	gasSysNams.append(strName);
	AcStringArray gasSysRunning;
	gasSysRunning.append(strIsRunning);

	strName.removeAll();
	strIsRunning.removeAll();
	strReason.removeAll();
	GetDatasFromList(m_tempCListCtrl,strName,strIsRunning,strReason,_ttoi(m_numTempSys));
	datas.clear();
	datas.push_back(strName);
	datas.push_back(strIsRunning);
	datas.push_back(strReason);
	ReportDataHelper::WriteDatas(TEMPGAS_OBJCT_NAME,datas);
	//WriteDataToFile(_T("btvars.txt"),strName,strIsRunning,strReason);
	//for (int i = 0; i < strName.length(); i++)
	//{
		gasSysNams.append(strName);
		gasSysRunning.append(strIsRunning);
	//}
	RecordRunningSysName(gasSysNams,gasSysRunning);

	if(ShowRetDlg())
	{
		OnOK();
	}
}
开发者ID:wyrover,项目名称:GDES,代码行数:40,代码来源:GasSysDlg.cpp


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