Skip to content

Commit 3b2eb6a

Browse files
committed
add enum comm::CMD to server.rst to make reference work in the doc
1 parent e3cff27 commit 3b2eb6a

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

doc/src/api/vpr/server.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ server::GateIO
1818
server::Task
1919
------------
2020

21+
.. doxygenfile:: commcmd.h
22+
:project: vpr
23+
2124
.. doxygenclass:: server::Task
2225
:project: vpr
2326
:members:

vpr/src/server/commcmd.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#ifndef COMMCMD_H
2+
#define COMMCMD_H
3+
4+
#ifndef NO_SERVER
5+
6+
namespace comm {
7+
8+
enum class CMD : int {
9+
NONE=-1,
10+
GET_PATH_LIST_ID=0,
11+
DRAW_PATH_ID=1
12+
};
13+
14+
} // namespace comm
15+
16+
#endif /* NO_SERVER */
17+
18+
#endif /* COMMCMD_H */

vpr/src/server/commconstants.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ inline const std::string OPTION_DRAW_PATH_CONTOUR{"draw_path_contour"};
2828
inline const std::string KEY_SETUP_PATH_LIST{"setup"};
2929
inline const std::string KEY_HOLD_PATH_LIST{"hold"};
3030

31-
enum class CMD : int {
32-
NONE=-1,
33-
GET_PATH_LIST_ID=0,
34-
DRAW_PATH_ID=1
35-
};
36-
3731
} // namespace comm
3832

3933
#endif /* NO_SERVER */

vpr/src/server/task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <chrono>
99

1010
#include "telegramheader.h"
11-
#include "commconstants.h"
11+
#include "commcmd.h"
1212

1313
namespace server {
1414

0 commit comments

Comments
 (0)