Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cHttpScriptedFactory.h
Go to the documentation of this file.
1 //
5 //
6 
7 #ifndef _INC_cHttpScriptedFactory_H
8 #define _INC_cHttpScriptedFactory_H
9 #ifndef NO_PRAGMA_ONCE
10 #pragma once
11 #endif
12 
13 #include "cHttpFactory.h"
14 #include "cHttpProtocolStream.h"
15 #include "../XObject/cXObjDef.h"
16 
17 namespace GrayLib
18 {
19  class cHttpScriptedFactory;
20 
22  {
25 
26  public:
27  cHttpScriptedProtocolStream(cHttpScriptedFactory* pFactory, IUnkObject* pServerConnection, cStreamInput* pStreamInp, cStreamOutput* pStreamOut);
28  virtual ~cHttpScriptedProtocolStream();
29 
31  };
32 
34  {
37 
38  public:
39  cHttpScriptedFactory(const char* pszServName = GRAY_NAMES "HTTPServer")
40  : cHttpFactory(pszServName)
41  {
42  }
44  {
45  }
46  virtual cProtocolStreamPtr CreateProtocolStream(IUnkObject* pServerConnection, cStreamInput* pStreamInp, cStreamOutput* pStreamOut) override
47  {
49  return new cHttpScriptedProtocolStream(this, pServerConnection, pStreamInp, pStreamOut);
50  }
51  };
52 };
53 #endif
#define GRAY_NAMES
Use GRAYNAME for string.
Definition: GrayCore.h:34
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cHttpFactory.h:27
Definition: cHttpProtocolStream.h:22
Definition: cHttpScriptedFactory.h:34
virtual cProtocolStreamPtr CreateProtocolStream(IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) override
Definition: cHttpScriptedFactory.h:46
cHttpScriptedFactory(const char *pszServName=GRAY_NAMES "HTTPServer")
Definition: cHttpScriptedFactory.h:39
virtual ~cHttpScriptedFactory()
Definition: cHttpScriptedFactory.h:43
Definition: cHttpScriptedFactory.h:22
Definition: cXObject.h:78
Definition: cStream.h:306
Definition: cStream.h:126
Definition: cMesh.h:22