SuperDex Physics C++ API
Loading...
Searching...
No Matches
mochi_debug_server.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <cstdint>
20
21namespace superdex {
22
23struct CoordinateSpace;
24
26 public:
27 virtual void Start(uint16_t preferredPort = 7333) = 0;
28 virtual void Stop() = 0;
29 virtual bool HasStarted() const = 0;
30 virtual bool HasConnection() const = 0;
31 virtual uint16_t GetPort() const = 0;
32 virtual void SetCoordinateSpace(CoordinateSpace const& space) = 0;
33
34 protected:
35 // DebugServer is owned by the Context. Do not delete it.
36 ~DebugServer() = default;
37};
38
39} // namespace superdex
Server API to enable remote debugging and visualization.
virtual void Start(uint16_t preferredPort=7333)=0
Start accepting client connections on a TCP port.
virtual uint16_t GetPort() const =0
Get the actual TCP port the server is listening on.
virtual void SetCoordinateSpace(CoordinateSpace const &space)=0
Declare the coordinate space this application's scene data is expressed in.
virtual void Stop()=0
Stop the server and disconnect any connected client.
virtual bool HasConnection() const =0
Check whether a debugger client is currently connected.
virtual bool HasStarted() const =0
Check whether the server has started.
Coordinate-axis convention and linear unit scale.