NAP
nap
core
src
nap
device.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
#pragma once
6
7
#include "resource.h"
8
9
namespace
nap
10
{
20
class
NAPAPI
Device
:
public
Resource
21
{
22
RTTI_ENABLE(
Resource
)
23
public
:
24
31
virtual
bool
start
(
utility::ErrorState
& errorState) {
return
true
; }
32
37
virtual
void
stop
() {}
38
};
39
}
nap::utility::ErrorState
Definition:
errorstate.h:19
nap::Device::start
virtual bool start(utility::ErrorState &errorState)
Definition:
device.h:31
nap
Definition:
templateapp.h:17
nap::Device::stop
virtual void stop()
Definition:
device.h:37
nap::Resource
Definition:
resource.h:19
nap::Device
Definition:
device.h:20
Generated by doxygen