⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rec_container.cpp

📁 PQDIF软件包(SDK,Software Development Kit),它能转换、生成并且显示PQDIF文件.对于开发电力系统的数据输出非常有用。
💻 CPP
字号:
/*
**  CPQDIF_R_Container class. Implements a PQDIF record "wrapper" for the
**  data source record. You can cast a standard record object to this class.
**  --------------------------------------------------------------------------
**
**  File name:          $Workfile: rec_container.cpp $
**  Last modified:      $Modtime: 8/22/97 2:46p $
**  Last modified by:   $Author: Rob $
**
**  VCS archive path:   $Archive: /ElectrotekLibs/PQDIF/BasicPQDIF/rec_container.cpp $
**  VCS revision:       $Revision: 1 $ 
*/
#include "PQDIF_classes.h"


//  Operations

bool CPQDIF_R_Container::GetCompressionInfo
	(
    UINT4&  styleComp,		//	Compression style (output)
    UINT4&  algComp			//	Compression algorithm (output)
	)
{
	bool		status = false;
	GUID		tagRecord;
	PQDIFValue	value;

	//	Verify that the record has the right header tag
	status = HeaderGetTag( tagRecord );
	if( status && PQDIF_IsEqualGUID( tagRecord, tagContainer) && m_pcollMain )
	{
		//	It's the right type of record.
		//	
		status = GetScalarValueInCollection( m_pcollMain, 
			tagCompressionStyleID, ID_PHYS_TYPE_UNS_INTEGER4, value );
		if( status )
		{
			//	We got compression style.
			styleComp = value.uint4;

			//	Now try to get compression algorithm
			status = GetScalarValueInCollection( m_pcollMain, 
				tagCompressionAlgorithmID, ID_PHYS_TYPE_UNS_INTEGER4, value );
			if( status )
			{
				//	We got compression algorithm. All done.
				algComp = value.uint4;
			}
		}
	}

	return status;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -