nx_server_plugin_sdk 1.0 Server Plugin SDK

i_stream_writer.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <camera/camera_plugin.h>
6 #include <nx/sdk/i_integration.h>
7 #include <nx/sdk/interface.h>
8 #include <nx/sdk/result.h>
9
10 #include "i_media_data_packet.h"
11
12 namespace nx::sdk::cloud_storage {
13
24 class IStreamWriter: public Interface<IStreamWriter>
25 {
26 public:
27 static auto interfaceId() { return makeId("nx::sdk::archive::IStreamWriter"); }
28
43 virtual ErrorCode putData(const IMediaDataPacket* packet) = 0;
44
49 virtual ErrorCode close(int64_t durationMs) = 0;
50
54 virtual int size() const = 0;
55 };
56
57 } // namespace nx::sdk::cloud_storage
nx::sdk::cloud_storage::IStreamWriter::close
virtual ErrorCode close(int64_t durationMs)=0
nx::sdk::cloud_storage::IStreamWriter::size
virtual int size() const =0
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::cloud_storage::IMediaDataPacket
Definition: i_media_data_packet.h:17
nx::sdk::cloud_storage::IStreamWriter
Definition: i_stream_writer.h:24
nx::sdk::cloud_storage
Definition: algorithm.cpp:9
nx::sdk::cloud_storage::IStreamWriter::putData
virtual ErrorCode putData(const IMediaDataPacket *packet)=0
nx::sdk::IRefCountable::makeId
static const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77