WOSA/XFS PTR Form解析库—头文件
class AFX_EX_CLASS CNuXfsForm {
public:
CNuXfsForm();
~CNuXfsForm();
/******************************************************************************
Function:
Set parsing Form related parameters.
Input parameters:
1.lpszFormDir:Form file directory
2.lpszFormFileStr: Vertical line split file type (support access subdirectory)
The format is as follows:
*.form|*.wfm|*.xfs|form*.form|form*.wfm|form*.xfs
3.lpszFormKeySetStr: The requirement of the comma division in English is to parse the Form attribute
The format is as follows:
UNIT,POINTSIZE,ALIGNMENT,ORIENTATION,SKEW,VERSION,LANGUAGE,CPI,LPI,SIZE,COPYRIGHT,TITLE,COMMENT,USERPROMPT
4.lpszFieldKeySetStr: the requirement of the comma division in English is to parse the Field attribute
The format is as follows:
POSITION,FOLLOWS,HEADER,FOOTER,SIDE,SIZE,INDEX,TYPE,SCALING,BARCODE,COERCIVITY,CLASS,ACCESS,OVERFLOW,STYLE,CASE,HORIZONTAL,VERTICAL,COLOR,RGBCOLOR,LANGUAGE,FONT,POINTSIZE,CPI,LPI,FORMAT,INITIALVALUE
5.bCheckValidList: Check formlist or medialist is valid when load
6.bWriteFormLog: Write form log when query form or media
Output parameters:
None
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_SetFormParams(
LPSTR lpszFormDir
, LPSTR lpszFormFileStr
, LPSTR lpszFormKeySetStr
, LPSTR lpszFieldKeySetStr
, bool bCheckValidList = false
, bool bWriteFormLog = false);
/******************************************************************************
Function:
Get the list of forms available on the device..
Input parameters:
None
Output parameters:
1.lpszFormList: Form list
2.lpNumItems: Forms count
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfFormList(
LPSTR lpszFormList
, int *lpNumItems);
/******************************************************************************
Function:
Get the list of medias available on the device..
Input parameters:
None
Output parameters:
1.lpszMediaList: Media list
2.pNumItems: Medias count
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfMediaList(
LPSTR lpszMediaList
, int *lpNumItems);
/******************************************************************************
Function:
Gets the detailed description of the specified form.
Input parameters:
1.lpszFormName:Specified form name(NULL,empty,string)
Output parameters:
1.lpHeader: Form info
2.lpNumFields :Form fields count
Return Value
0:Success
-1:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfQueryForm(
LPSTR lpszFormName
, LPWFSFRMHEADER lpHeader
, int *lpNumFields);
/******************************************************************************
Function:
Gets the detailed description of the specified media.
Input parameters:
1.lpszMediaName:Specified media name(NULL,empty,string)
Output parameters:
1.lpMedia: Media info
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfQueryMedia(
LPSTR lpszMediaName
, LPWFSFRMMEDIA lpMedia);
/******************************************************************************
Function:
Gets detailed information about a single or all field description on the specified form.
Input parameters:
1.lpQueryField:A single or all field on the specified form(NULL,empty,string)
Output parameters:
1.lppFields: Form fields info
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfQueryField(
LPWFSPTRQUERYFIELD lpQueryField
, LPWFSFRMFIELD *lppFields);
/******************************************************************************
Function:
Gets the structured definition information for the form specified for printing.
Input parameters:
1.lpPrintForm:Specified media name(NULL,empty,string)
2.bSortPosition: Whether or not to sort the position
Output parameters:
1.lpPtrForm: Generated structured Form definition information
2.lpPtrMedia: Generated structured Media definition information
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrCmdPrintForm(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia
, bool bSortPosition = false);
/******************************************************************************
Function:
Gets the structured definition information for the form specified for printing.
Input parameters:
1.lpReadForm: Specify a form to limit read information(NULL,empty,string)
Output parameters:
1.lpPtrForm: Generated structured Form definition information
2.lpPtrMedia: Generated structured Media definition information
Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrCmdReadForm(
LPWFSPTRREADFORM lpReadForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia);
CNuLog *m_pLog = NULL;
char m_szFormDir[256];
/******************************************************************************
Extra:
******************************************************************************/
int NUFRM_GetPTRFormInfo(
LPSTR lpszFileName
, LPSTR lpszFormName
, LPWFSPTRFORM lpPtrForm
, bool bSortPosition = false);
int NUFRM_GetPTRMediaInfo(
LPSTR lpszFileName
, LPSTR lpszMediaName
, LPWFSPTRMEDIA lpPtrMedia);
int NUFRM_GetPTRFormListField(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, std::vector<WFSPTRFIELDKEYINDEXVALUE> &listField);
int NUFRM_PTRPrintDoc(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia
, LPSTR lpszPrinterName
, LPSTR lpszDefaultFont
, float fDefalutPointSize = 10.5f);
int NUFRM_PTRGenerateImage(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia
, LPSTR lpszCreateFileName
, LPSTR lpszDefaultFont
, float fDefalutPointSize = 10.5f
, int nXmm = 0
, int nYmm = 0
, float fPixScale = 1.0);
};
typedef CNuXfsForm* (__cdecl *CNUXFSFORM)(CNuLog *pLog, char *pcExtra, DWORD dwExtra);
WOSA/XFS PTR Form解析库—头文件的更多相关文章
- WOSA/XFS PTR Form解析库—FormRule.h
#ifndef _FORMRULE_H_#define _FORMRULE_H_ #include <XFSPTR.H>#include <string>#include &l ...
- WOSA/XFS PTR Form解析库—xfsptrdata.h
#ifndef _XFSPTRDATA_H_#define _XFSPTRDATA_H_ #include <XFSPTR.H>#include <Windows.h>#inc ...
- WOSA/XFS PTR Form解析库—测试工具预览
- WOSA/XFS PTR FORM—基础知识
目录 一.XFS PTR 二.XFS PTR FORM 三.Form.子Form.字段.框架.表单和媒介的定义 正文 一.XFS PTR Class Name PTR Class Identifier ...
- 关于使用cocoaPods,import导入时第三方库头文件没有提示问题的解决办法
估计有很多朋友在使用Xcode在项目中导入第三方库时,使用的是cocoaPods,但是在项目中使用此第三方库导入头文件时,输入#import后,并不会联想第三方库头文件(XXXX.h),需要我们手动输 ...
- boost.spirit之解析C++头文件
环境:win7_64旗舰版,VS2008 场景:C++与lua交互是比较繁琐的,当我们编写一个C++类后,如果要给lua使用,就必须写一个lua包装类,将lua与原始C++类关联起来.其实这部分代码编 ...
- C++标准库头文件名字和C语言头文件名字的区别
1.C++版本的C标准库头文件,一般是cname,而C语言头文件一般是name.h 2.命名为cname的头文件中定义的名字都是从std中来的,而如果是name.h则不是这样的. 3.与是用name. ...
- C++标准库头文件找不到的问题
当你写C++程序时,在头文件中包含C++标准库的头文件,比如#include <string>,而编译器提示你找不到头文件! 原因就是你的实现源文件扩展名是".c"而不 ...
- [C++STDlib基础]关于日期时间的操作——C++标准库头文件<ctime>
总结 /* A.头文件<ctime> #if _GLOBAL_USING && !defined(RC_INVOKED) _STD_BEGIN 1.四个数据类型 using ...
随机推荐
- Linux发邮件
一.mail命令 1.配置 vim /etc/mail.rc 文件尾增加以下内容 set from=1968089885@qq.com smtp="smtp.qq.com"set ...
- CentOS 6.7 下 PostgreSQL 9.5 的安装与配置
#yum方式安装(不同的系统版本对应的版本也不同) yum install postgresql-server #安装指定版本 yum install https://download.postgre ...
- 全网最详细的hive-site.xml配置文件里如何添加达到Hive与HBase的集成,即Hive通过这些参数去连接HBase(图文详解)
不多说,直接上干货! 一般,普通的情况是 全网最详细的hive-site.xml配置文件里添加<name>hive.cli.print.header</name>和<na ...
- Font Awesome 4.0.3 提供了369个网页常用的矢量字体图标,新浪、人人 的矢量图标也到其中哟
要求 必备知识 本文要求基本了解html与css前端代码. 运行环境 普通浏览器,兼容IE7 源码下载 下载地址 Font Awesome 为您提供了一套可缩放的字体矢量图标,可以快速自定义图标的大小 ...
- Java之建造者模式(Builder Pattern)(转)
1.概念 将一个复杂的构建与其表示相分离,使得同样的构建过程可以创建不同的表示. [构建与表示分离,同构建不同表示] 与抽象工厂的区别:在建造者模式里,有个指导者,由指导者来管理建造者,用户是与指导者 ...
- 常用的Maven 插件
Maven本质上是一个插件框架,它的核心并不执行任何具体的构建任务,所有这些任务都交给插件来完成. 例如编译源代码是由maven- compiler-plugin完成的.进一步说,每个任务对应了一个插 ...
- BackgroundWorker简单实用(简便的异步操作)
微软提供了一个快捷使用多线程的帮助类BackgroundWorker,能够快速创建一个新的线程,并能报告进度,暂停,以及在线程完成后处理别的任务. 1.BackgroundWorker类介绍 1.1. ...
- 常见hash原理
原文出处:http://www.itmian4.com/forum.php?mod=viewthread&tid=4736&fromuid=1 散列表,它是基于快速存取的角度设计的,也 ...
- Docker轻量级web图形页面管理 - Portainer部署记录
Docker图形页面管理工具基本常用的有三种: Docker UI,Shipyard,Portainer,之前分别介绍了Docker UI和Shipyard部署,下面简单介绍下Portainer部署. ...
- UEFI+GPT与BIOS+MBR各自有什么优缺点?
1.分区数量上,gpt好像可以支持无限个分区,不过window上只认128个,而且gpt分区不分主分区,逻辑分区,可以理解为全部都是主分区,就相当于可以允许你一个分区一个系统,128个系统了.而这是m ...