Ejemplo n.º 1
0
StrArray<2> NumFlyWeight::GetData()
{
	StrArray<2> ret;
	ret.Data(m_strValue);
	ret.Data(m_strUnit,1);
	return ret;
}
Ejemplo n.º 2
0
void CFourQuadrantDBManager::GetFourQuadrantDB(CalcTable<2> &DBTable, TCHAR *buffer, ueifStream &file)
{
	int i = 0;
	file.getline(buffer, 50);
	file.getline(buffer, 50);
	while (file.getline(buffer, 50))
	{
		CString strFront;
		CString strBack;
		CString strSource = buffer;
		StrArray<2> strArray;

		if (strTableDBEnd.Compare(strSource) == 0)
		{
			i;
			break;
		}
		else
		{
			SlipeString(strFront, strBack, buffer);
			strArray.Data(strFront, 0);
			strArray.Data(strBack, 1);
			DBTable.AddItem(strArray);
			i++;
		}
	}	
}
Ejemplo n.º 3
0
ErrorStatus::FileError CalcOrificeFace::Save(CalcOrifice &Data,StrArray<5> &Model)
{
	Data.Model(Model.nData(0));
	Data.InFlowCD(Model.fData(1));
	Data.OutFlowCD(Model.fData(2));
	Data.Area(TransStd(Model.Data(3),Model.Data(4)));
	return ErrorStatus::eFileOK;
}
Ejemplo n.º 4
0
void CFourQuadrantDBManager::GetSqecSpeed(CalcTable<2> &speedTable, ueifStream &file, TCHAR *buffer)
{
	StrArray<2> strArray;

	file.getline(buffer, 50);
	strArray.Data(buffer, 0);
	file.getline(buffer, 50);
	file.getline(buffer, 50);
	strArray.Data(buffer, 1);
	speedTable.AddItem(strArray);
}
Ejemplo n.º 5
0
void CInputToFile::SetDAtaToFile(CalcTable<2> &DBTable)
{
	CString strBuffer;
    ofstream ofFile(m_strFilePath);
	
	GetFilePath();
    StrArray<2> temp;
	IteratorPtr<StrArray<2> > DBPtr(DBTable.CreatIterator());
	for(DBPtr->Fist();!DBPtr->IsDone();DBPtr->Next())
	{
		temp = DBPtr->CurrentItem();
		strBuffer = temp.Data(0);
		ofFile<<strBuffer<<_T(",");
		strBuffer = temp.Data(1);
		ofFile<<strBuffer<<endl;
	}	
}
Ejemplo n.º 6
0
void PCFPipesMgr::InitNetLink(AcGePoint3d &Pt,EndList &end,int nID)
{
	PCFPipe *pPipe = NULL;
	StrArray<1> item;
	IteratorPtr<PCFPipe> PipeitPtr(CreateIt());
	for(PipeitPtr->Fist();!PipeitPtr->IsDone();PipeitPtr->Next())
	{
		pPipe = &PipeitPtr->CurrentItem();
		ASSERT(pPipe != NULL);
		if(IsEqual(pPipe->StartPt(),Pt))
		{
			pPipe->InJun(nID);
			item.Data(-pPipe->GetKey(),0);
			end.AddItem(item);
		}
		if(IsEqual(pPipe->EndPt(),Pt))
		{
			pPipe->OutJun(nID);
			item.Data(pPipe->GetKey(),0);
			end.AddItem(item);
		}
	}
}
Ejemplo n.º 7
0
void Pipe::SectionInfo(StrArray<8> &array,double dTime)
{
	array.Data(GetKey(),0);
	array.Data(float(Len()),1);
	array.Data(float(WaveSpeed()),2);
	array.Data(float(CalcSection(dTime)),3);
	int nNum = 0;
	double dError = 0;
	double dWave = 0;
	CalcSection(nNum,dError,dTime);
	dWave = (Len()/nNum) / dTime;
	array.Data(nNum,4);
	array.Data(float(dError),5);
	array.Data(float(dWave),6);
}
Ejemplo n.º 8
0
void NumFlyWeight::SetData(const StrArray<2> &ref)
{
	m_strValue = ref.Data();
	m_strUnit  = ref.Data(1);
}