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 ...
随机推荐
- C++:实现类似MFC的IsKindOf功能
假设需要一个类别库,改类别库共包含以下5个类:GrandFather(祖父类).Father(父类).Son(儿子类).Daughter(女儿类).GrandSon(孙子类) 各个类之间的继承关系为: ...
- MySQL笔记(4)---表
1.前言 上一章记录了MySQL中的一些文件组成,以及相关作用和参数配置,本章开始记录深层次的存储结构,以便更好理解MySQL的设计. 2.索引组织表 InnoDB中,表都是根据主键顺序组织存放的,这 ...
- Spring Boot + docker +mongo
启动mongo镜像 docker run --name mongo-container -d -P mongo 连接到容器内 docker exec -it eb sh 输入:mongo 输入:sho ...
- Flexbox指南
Flexbox布局(Flexible Box)模块旨在提供一个更加有效的方式制定.调整和分布一个容器里的项目布局,即使他们的大小是未知或者是动态的.(这里我们称为Flex). Flex布局主要思想是让 ...
- 全网最详细的HA集群的主节点之间的双active,双standby,active和standby之间切换的解决办法(图文详解)
不多说,直接上干货! 1. HA集群的主节点之间的双standby的解决办法: 全网最详细的Hadoop HA集群启动后,两个namenode都是standby的解决办法(图文详解) 2. HA集群的 ...
- Hadoop2源码分析-准备篇
1.概述 我们已经能够搭建一个高可用的Hadoop平台了,也熟悉并掌握了一个项目在Hadoop平台下的开发流程,基于Hadoop的一些套件我们也能够使用,并且能利用这些套件进行一些任务的开发.在Had ...
- docker网络之overlay
使用docker network的好处是:在同一个网络上的容器之间可以相互通信,而无需使用expose端口特性 本文使用docker-swarm进行overlay网络的分析.使用2个vmware模拟2 ...
- fastjson 处理 double 的精度问题
项目中使用 fastjson 来处理 json 格式,当前使用的版本为1.1.37.在和其它系统交互时,将一个json串传给了对方,原值为5.0,json 处理后格式为:{"dou" ...
- CentOS Basic XLib functionality test failed!
在CentOS上安装个Qt库时,下好源代码之后执行: ./configure检查环境时,出现: Basic XLib functionality test failed! You might need ...
- Docker: vmware企业级docker镜像私服--Harbor的搭建
1.下载harbor,地址https://github.com/vmware/harbor2.进入harbor-master/Deploy目录,修改harbor.cfg文件,主要修改以下信息 ...