-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojection.cpp
More file actions
53 lines (40 loc) · 980 Bytes
/
projection.cpp
File metadata and controls
53 lines (40 loc) · 980 Bytes
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
#include "stdafx.h"
#include "projection.h"
#include "sql_column.h"
void orm::sql::swap(orm::sql::projection &left, orm::sql::projection &right)
{
using std::swap;
swap(left._projections, right._projections);
}
orm::sql::projection::projection()
{
}
orm::sql::projection::projection(const orm::sql::projection &other) :
_projections(other._projections)
{
}
orm::sql::projection::projection(orm::sql::projection &&other) :
orm::sql::projection()
{
swap(*this, other);
}
orm::sql::projection::~projection()
{
}
orm::sql::projection &orm::sql::projection::operator =(orm::sql::projection other)
{
swap(*this, other);
return *this;
}
void orm::sql::projection::AddProjection(const orm::sql::sql_column &column)
{
_projections.push_back(column);
}
std::vector<orm::sql::sql_column> &orm::sql::projection::GetProjections()
{
return _projections;
}
const std::vector<orm::sql::sql_column> &orm::sql::projection::GetProjections() const
{
return _projections;
}