AppCore
Loading...
Searching...
No Matches
EPrinterTemplateCol.h
Go to the documentation of this file.
1#ifndef EPRINTERTEMPLATECOL_H
2#define EPRINTERTEMPLATECOL_H
3
4#include <string>
5#include <vector>
6
7#include "appcore/printertemplate/ETicketBitmap.h"
8#include "appcore/printertemplate/EMPrinterTemplate.h"
9
10namespace EM
11{
12 namespace Common
13 {
14 class EDataCol;
15 }
16}
17
18class EXMLConfig;
19
20namespace EM
21{
22 namespace PrinterTemplate
23 {
24 class EPrinterTemplate;
25
31 {
32 public:
35
36 void SetHeight();
37 float GetHeight();
38 float GetWidth();
39 EPrinterTemplate* Add( std::string filePath, std::string name );
40 EPrinterTemplate* Add( EXMLConfig *xmlConfig, std::string name );
41 EPrinterTemplate* Get( const std::string &name );
42 void Initialization();
43 void Clear();
44 void Prepare();
45 void Remove( const std::string &name );
46 void Read();
47 void Create( float defWidth );
48 long Save( std::string fileName );
49
50 unsigned char* Print( unsigned long& length, unsigned long& width, unsigned long& height );
51 std::vector<ETicketBitmap*> Print();
52 std::vector<EM::Common::EDataCol*> GetDataCollections();
53
54 private:
55 class DataClass;
56 DataClass *d;
57 };
58 }
59}
60
61#endif
#define EMPRINTERTEMPLATE_API
Definition EMPrinterTemplate.h:9
collection of templates (XML files)
Definition EPrinterTemplateCol.h:31
void Remove(const std::string &name)
long Save(std::string fileName)
EPrinterTemplate * Add(EXMLConfig *xmlConfig, std::string name)
EPrinterTemplate * Get(const std::string &name)
EPrinterTemplate * Add(std::string filePath, std::string name)
concrete template (XML file)
Definition EPrinterTemplate.h:26
Definition EPrinterTemplateCol.cpp:37
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7