VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvWebSocket
DtWebSocketTaskElement.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 VT-MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvWebSocket/vrvWebSocket.h
>
13
14
#include <
vrvVideoStream/DtImageTaskElement.h
>
15
16
#include <string>
17
18
struct
libwebsocket_context;
19
20
namespace
makVrv
21
{
26
class
DT_DLL_VRVWEBSOCKET
DtWebSocketTaskElement
27
:
public
DtImageTaskElement
28
{
29
public
:
32
friend
class
DtWebSocketTaskElementCreator
;
33
34
virtual
~
DtWebSocketTaskElement
();
35
37
virtual
void
setFromRecord(
const
makArchives::DtImageTaskRecord
& config );
38
40
virtual
bool
configure();
41
42
DtLocklessQueue<std::string>
&
queue
() {
return
*myCommandQueue;}
43
44
protected
:
46
DtWebSocketTaskElement
(
DtDe
& de,
DtProcessImageTask
* owningTask );
47
48
void
handlePreFrame();
49
50
void
handleProcessFrame(
DtVideoFrameBuffer
* frame);
51
52
bool
generateAndWriteHtml();
53
54
protected
:
55
libwebsocket_context*
myContext
;
56
DtLocklessQueue<std::string>
*
myCommandQueue
;
57
int
myPort
;
58
};
59
64
class
DT_DLL_VRVWEBSOCKET
DtWebSocketTaskElementCreator
65
:
public
DtImageTaskElementCreator
66
{
67
public
:
69
friend
class
DtVideoStreamManager
;
70
72
DtWebSocketTaskElementCreator
();
73
75
virtual
~
DtWebSocketTaskElementCreator
();
76
77
protected
:
79
virtual
DtImageTaskElement
* create(
DtDe
& de,
DtProcessImageTask
* owningTask );
80
};
81
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)