Fawkes API
Fawkes Development Version
tf-rest-api.h
1
2
/***************************************************************************
3
* tf-rest-api.h - Transforms REST API
4
*
5
* Created: Wed Apr 11 10:07:34 2018
6
* Copyright 2006-2018 Tim Niemueller [www.niemueller.de]
7
****************************************************************************/
8
9
/* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Library General Public License for more details.
18
*
19
* Read the full text in the LICENSE.GPL file in the doc directory.
20
*/
21
22
#pragma once
23
24
#include "model/TransformsGraph.h"
25
26
#include <aspect/configurable.h>
27
#include <aspect/logging.h>
28
#include <aspect/tf.h>
29
#include <aspect/webview.h>
30
#include <core/threading/thread.h>
31
#include <webview/rest_api.h>
32
#include <webview/rest_array.h>
33
34
class
TransformsRestApi
:
public
fawkes::Thread
,
35
public
fawkes::ConfigurableAspect
,
36
public
fawkes::LoggingAspect
,
37
public
fawkes::WebviewAspect
,
38
public
fawkes::TransformAspect
39
{
40
public
:
41
TransformsRestApi
();
42
~TransformsRestApi
();
43
44
virtual
void
init
();
45
virtual
void
loop
();
46
virtual
void
finalize
();
47
48
private
:
49
TransformsGraph
cb_get_graph();
50
51
private
:
52
fawkes::WebviewRestApi
*rest_api_;
53
};
TransformsRestApi::~TransformsRestApi
~TransformsRestApi()
Destructor.
Definition:
tf-rest-api.cpp:39
TransformsRestApi
Definition:
tf-rest-api.h:33
TransformsRestApi::finalize
virtual void finalize()
Finalize the thread.
Definition:
tf-rest-api.cpp:54
TransformsRestApi::loop
virtual void loop()
Code to execute in the thread.
Definition:
tf-rest-api.cpp:61
fawkes::LoggingAspect
Definition:
logging.h:36
TransformsRestApi::init
virtual void init()
Initialize the thread.
Definition:
tf-rest-api.cpp:44
fawkes::TransformAspect
Definition:
tf.h:41
fawkes::WebviewAspect
Definition:
webview.h:40
fawkes::WebviewRestApi
Definition:
rest_api.h:223
fawkes::Thread
Definition:
thread.h:44
TransformsRestApi::TransformsRestApi
TransformsRestApi()
Constructor.
Definition:
tf-rest-api.cpp:34
TransformsGraph
TransformsGraph representation for JSON transfer.
Definition:
TransformsGraph.h:25
fawkes::ConfigurableAspect
Definition:
configurable.h:36
src
plugins
webview
tf-rest-api
tf-rest-api.h
Generated by
1.8.16