aboutsummaryrefslogtreecommitdiff
path: root/include/StagedObject.hpp
blob: 0c9b53455b0e2a679c55a3a7b9be4b3fdf538623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "utils.hpp"
#include "Hash.hpp"
#include "DataView.hpp"

namespace odhtdb
{
    struct StagedObject
    {
        DISABLE_COPY(StagedObject)
        DataView data;
        std::shared_ptr<Hash> requestKey;
        
        StagedObject(DataView &_data, const std::shared_ptr<Hash> &_requestKey) : 
            data(_data),
            requestKey(_requestKey)
        {
            
        }
    };
}