LeviLamina
Loading...
Searching...
No Matches
Statistics.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8namespace NetherNet { class PeerConnectionObserver; }
9namespace NetherNet { struct SessionState; }
10namespace webrtc { class RTCIceCandidatePairStats; }
11namespace webrtc { class RTCLocalIceCandidateStats; }
12namespace webrtc { class RTCRemoteIceCandidateStats; }
13namespace webrtc { class RTCTransportStats; }
14// clang-format on
15
16namespace NetherNet {
17
18class Statistics {
19public:
20 // Statistics inner types declare
21 // clang-format off
22 struct Snapshot;
23 // clang-format on
24
25 // Statistics inner types define
26 struct Snapshot {
27 public:
28 // Snapshot inner types declare
29 // clang-format off
30 struct CandidateInfo;
31 struct CandidatePairInfo;
32 struct Error;
33 // clang-format on
34
35 // Snapshot inner types define
36 struct CandidateInfo {
37 public:
38 // member variables
39 // NOLINTBEGIN
44 // NOLINTEND
45
46 public:
47 // prevent constructor by default
48 CandidateInfo& operator=(CandidateInfo const&);
49 CandidateInfo(CandidateInfo const&);
50 CandidateInfo();
51
52 public:
53 // member functions
54 // NOLINTBEGIN
55 MCNAPI ::Json::Value toJson() const;
56 // NOLINTEND
57 };
58
59 struct CandidatePairInfo {
60 public:
61 // member variables
62 // NOLINTBEGIN
84 // NOLINTEND
85
86 public:
87 // prevent constructor by default
88 CandidatePairInfo& operator=(CandidatePairInfo const&);
89 CandidatePairInfo(CandidatePairInfo const&);
90 CandidatePairInfo();
91 };
92
93 struct Error {
94 public:
95 // member variables
96 // NOLINTBEGIN
103 // NOLINTEND
104
105 public:
106 // prevent constructor by default
107 Error& operator=(Error const&);
108 Error(Error const&);
109 Error();
110 };
111
112 public:
113 // member variables
114 // NOLINTBEGIN
122 // NOLINTEND
123
124 public:
125 // prevent constructor by default
126 Snapshot& operator=(Snapshot const&);
127 Snapshot(Snapshot const&);
128 Snapshot();
129
130 public:
131 // member functions
132 // NOLINTBEGIN
133 MCNAPI ::Json::Value summarize() const;
134
135 MCNAPI ~Snapshot();
136 // NOLINTEND
137
138 public:
139 // destructor thunk
140 // NOLINTBEGIN
141 MCNAPI void $dtor();
142 // NOLINTEND
143 };
144
145public:
146 // member variables
147 // NOLINTBEGIN
151 // NOLINTEND
152
153public:
154 // prevent constructor by default
155 Statistics& operator=(Statistics const&);
156 Statistics(Statistics const&);
157 Statistics();
158
159public:
160 // member functions
161 // NOLINTBEGIN
162 MCNAPI explicit Statistics(::NetherNet::PeerConnectionObserver& peerObserver);
163
165 ::std::string const& address,
166 int port,
167 ::std::string const& url,
168 int errorCode,
169 ::std::string const& errorMessage
170 );
171
172 MCNAPI void addSnapshot(
173 ::gsl::span<::std::reference_wrapper<::webrtc::RTCTransportStats const>> transportsStats,
174 ::gsl::span<::std::reference_wrapper<::webrtc::RTCLocalIceCandidateStats const>> localCandidatesStats,
175 ::gsl::span<::std::reference_wrapper<::webrtc::RTCRemoteIceCandidateStats const>> remoteCandidatesStats,
176 ::gsl::span<::std::reference_wrapper<::webrtc::RTCIceCandidatePairStats const>> candidatePairsStats
177 );
178
180
181 MCNAPI ~Statistics();
182 // NOLINTEND
183
184public:
185 // constructor thunks
186 // NOLINTBEGIN
187 MCNAPI void* $ctor(::NetherNet::PeerConnectionObserver& peerObserver);
188 // NOLINTEND
189
190public:
191 // destructor thunk
192 // NOLINTBEGIN
193 MCNAPI void $dtor();
194 // NOLINTEND
195};
196
197} // namespace NetherNet
Definition Value.h:16
Definition PeerConnectionObserver.h:22
MCAPI bool getLastSnapshot(::NetherNet::SessionState &state) const
MCAPI void _onIceCandidateError(::std::string const &address, int port, ::std::string const &url, int errorCode, ::std::string const &errorMessage)
MCAPI Statistics(::NetherNet::PeerConnectionObserver &peerObserver)
MCAPI void * $ctor(::NetherNet::PeerConnectionObserver &peerObserver)
MCAPI void addSnapshot(::gsl::span<::std::reference_wrapper<::webrtc::RTCTransportStats const > > transportsStats, ::gsl::span<::std::reference_wrapper<::webrtc::RTCLocalIceCandidateStats const > > localCandidatesStats, ::gsl::span<::std::reference_wrapper<::webrtc::RTCRemoteIceCandidateStats const > > remoteCandidatesStats, ::gsl::span<::std::reference_wrapper<::webrtc::RTCIceCandidatePairStats const > > candidatePairsStats)
Definition RTCIceCandidatePairStats.h:16
Definition RTCLocalIceCandidateStats.h:16
Definition RTCRemoteIceCandidateStats.h:16
Definition RTCTransportStats.h:16
Definition SessionState.h:7
Definition Statistics.h:93
Definition Statistics.h:26
MCAPI::Json::Value summarize() const
Definition Alias.h:14