первый
This commit is contained in:
33
devices/Printers/Printer.cpp
Normal file
33
devices/Printers/Printer.cpp
Normal file
@ -0,0 +1,33 @@
|
||||
//---------------------------------------------------------------------------
|
||||
//#pragma hdrstop
|
||||
|
||||
#include "stdafx.h"
|
||||
#ifdef _WINDOWS
|
||||
#include <Math.h>
|
||||
#else
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#include "Printer.h"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//#pragma package(smart_init)
|
||||
//---------------------------------------------------------------------------
|
||||
typedef unsigned int uint4;
|
||||
//---------------------------------------------------------------------------
|
||||
CPrinter::CPrinter()
|
||||
{
|
||||
m_Dots=0;
|
||||
m_LastErrorCode=0;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
CPrinter::~CPrinter()
|
||||
{
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
//Получить множитель для перевода в целые. если 0 точек после запятой то вернёт 1 иначе кол-во * 10
|
||||
double CPrinter::M()
|
||||
{
|
||||
return pow(10.0f,m_Dots);
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user