-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSize.h
executable file
·70 lines (54 loc) · 1.71 KB
/
Size.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//////////////////////////////////////////////////////////////////////////
// _ _ ____ ____
// Project | | | | / ___) / ___)
// | | | || | __ | |
// | |_| || |_\ || \___
// \____/ \____| \ ___) 6.0
//
//! \file Size.h
//! \brief Class 。
//! \details 。
//! \author liyq。
//! \attention
//! Copyright (c) 1996-2010 SuperMap Software Limited Company. <br>
//! All Rights Reserved.
//! \version 6.0
//////////////////////////////////////////////////////////////////////////
#ifndef SIZE_INCLUDE_H
#define SIZE_INCLUDE_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "PyGISCore/exports.h"
class GISCORE_API Size
{
public:
//! \brief 长度
int cx;
//! \brief 宽度
int cy;
public:
//! \brief 缺省构造函数
Size();
//! \brief 缺省析构函数
~Size();
//! \brief 带参构造函数
//! \param nX 长度
//! \param nY 宽度
Size(int nX, int nY);
//! \brief 重载 +=
Size& operator+=(const Size& sz);
//! \brief 重载 -=
Size& operator-=(const Size& sz);
//! \brief 重载 -
Size operator-() const;
//! \brief 重载==
friend GISCORE_API bool operator==(const Size& szSrc,const Size& szTag);
//! \brief 重载!=
friend GISCORE_API bool operator!=(const Size& szSrc,const Size& szTag);
//! \brief 重载 +
friend GISCORE_API Size operator+(const Size& szSrc,const Size& szTab);
//! \brief 重载 -
friend GISCORE_API Size operator-(const Size& szSrc,const Size& szTab);
};
#endif