Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef CLEANUPCOMMON_INCLUDED
Toshihiro Shimizu 890ddd
#define CLEANUPCOMMON_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "texception.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// unit conversion
Toshihiro Shimizu 890ddd
inline double inToPixel(double val, double dpi) { return val * dpi; }
Shinya Kitaoka 120a6e
inline double mmToPixel(double val, double dpi) {
Shinya Kitaoka 120a6e
  return (val * dpi) * (1.0 / 25.4);
Shinya Kitaoka 120a6e
}
Toshihiro Shimizu 890ddd
Shinya Kitaoka d1f6c4
class TCleanupException final : public TException {
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  TCleanupException(const char *msg) : TException(msg) {}
Shinya Kitaoka 120a6e
  ~TCleanupException() {}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef MAX_DOT
Toshihiro Shimizu 890ddd
#define MAX_DOT 500
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif