AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
10 namespace EM
11 {
12  namespace Common
13  {
14  class EDataCol;
15  }
16 }
17 
18 class EXMLConfig;
19 
20 namespace 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
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
#define EMPRINTERTEMPLATE_API
Definition: EMPrinterTemplate.h:9
Definition: EPrinterTemplateCol.cpp:36
concrete template (XML file)
Definition: EPrinterTemplate.h:25
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
collection of templates (XML files)
Definition: EPrinterTemplateCol.h:30