Warnings on vc14 were eliminated
[occt.git] / src / StdObject / StdObject_gp_Vectors.hxx
CommitLineData
45d8465e 1// Copyright (c) 2015 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14
15#ifndef _StdObject_gp_Vectors_HeaderFile
16#define _StdObject_gp_Vectors_HeaderFile
17
18
19#include <StdObjMgt_ReadData.hxx>
20
21#include <gp_Pnt2d.hxx>
22#include <gp_Vec2d.hxx>
23#include <gp_Dir2d.hxx>
24#include <gp_Pnt.hxx>
25#include <gp_Vec.hxx>
26#include <gp_Dir.hxx>
27
28
29inline StdObjMgt_ReadData& operator >>
30 (StdObjMgt_ReadData::Object theReadData, gp_XY& theXY)
31{
32 Standard_Real aX, aY;
33 theReadData >> aX >> aY;
34 theXY.SetCoord (aX, aY);
35 return theReadData;
36}
37
38inline StdObjMgt_ReadData& operator >>
39 (StdObjMgt_ReadData::Object theReadData, gp_Pnt2d& thePnt)
40{
41 Standard_Real aX, aY;
42 theReadData >> aX >> aY;
43 thePnt.SetCoord (aX, aY);
44 return theReadData;
45}
46
47inline StdObjMgt_ReadData& operator >>
48 (StdObjMgt_ReadData::Object theReadData, gp_Vec2d& theVec)
49{
50 Standard_Real aX, aY;
51 theReadData >> aX >> aY;
52 theVec.SetCoord (aX, aY);
53 return theReadData;
54}
55
56inline StdObjMgt_ReadData& operator >>
57 (StdObjMgt_ReadData::Object theReadData, gp_Dir2d& theDir)
58{
59 Standard_Real aX, aY;
60 theReadData >> aX >> aY;
61 theDir.SetCoord (aX, aY);
62 return theReadData;
63}
64
65inline StdObjMgt_ReadData& operator >>
66 (StdObjMgt_ReadData::Object theReadData, gp_XYZ& theXYZ)
67{
68 Standard_Real aX, aY, aZ;
69 theReadData >> aX >> aY >> aZ;
70 theXYZ.SetCoord (aX, aY, aZ);
71 return theReadData;
72}
73
74inline StdObjMgt_ReadData& operator >>
75 (StdObjMgt_ReadData::Object theReadData, gp_Pnt& thePnt)
76{
77 Standard_Real aX, aY, aZ;
78 theReadData >> aX >> aY >> aZ;
79 thePnt.SetCoord (aX, aY, aZ);
80 return theReadData;
81}
82
83inline StdObjMgt_ReadData& operator >>
84 (StdObjMgt_ReadData::Object theReadData, gp_Vec& theVec)
85{
86 Standard_Real aX, aY, aZ;
87 theReadData >> aX >> aY >> aZ;
88 theVec.SetCoord (aX, aY, aZ);
89 return theReadData;
90}
91
92inline StdObjMgt_ReadData& operator >>
93 (StdObjMgt_ReadData::Object theReadData, gp_Dir& theDir)
94{
95 Standard_Real aX, aY, aZ;
96 theReadData >> aX >> aY >> aZ;
97 theDir.SetCoord (aX, aY, aZ);
98 return theReadData;
99}
100
101
102#endif