-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathprogram.cpp
More file actions
40 lines (30 loc) · 775 Bytes
/
program.cpp
File metadata and controls
40 lines (30 loc) · 775 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
// Copyright (C) 2017-2018 Egor Pugin <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "program.h"
#include "command.h"
#include "file_storage.h"
#include "sw_context.h"
#include <sw/manager/storage.h>
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/lock_types.hpp>
#include <fstream>
#include <regex>
namespace sw
{
Program::Program(const SwBuilderContext &swctx)
: swctx(swctx)
{
}
Program::Program(const Program &rhs)
: swctx(rhs.swctx), file(rhs.file)
{
}
Program &Program::operator=(const Program &rhs)
{
file = rhs.file;
return *this;
}
}