VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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 Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)