VR-Forces 4.1 Class Documentation
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 
13 
15 
16 #include <string>
17 
18 struct libwebsocket_context;
19 
20 namespace makVrv
21 {
27  : public DtImageTaskElement
28  {
29  public:
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:
47 
48  void handlePreFrame();
49 
50  void handleProcessFrame(DtVideoFrameBuffer* frame);
51 
52  bool generateAndWriteHtml();
53 
54  protected:
55  libwebsocket_context* myContext;
57  int myPort;
58  };
59 
66  {
67  public:
69  friend class DtVideoStreamManager;
70 
73 
76 
77  protected:
79  virtual DtImageTaskElement* create( DtDe& de, DtProcessImageTask* owningTask );
80  };
81 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)