yhook: move ctor/dtor to cpp

Origin commit data
------------------
Commit: 07b39de268
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-20 (Sat, 20 Feb 2016)

Origin message was:
------------------
- yhook: move ctor/dtor to cpp
This commit is contained in:
vanhofen
2016-02-20 09:07:50 +01:00
parent caee20b1ad
commit f3bba7968d
2 changed files with 25 additions and 3 deletions

View File

@@ -13,6 +13,28 @@
#include "ylogging.h" #include "ylogging.h"
#include "helper.h" #include "helper.h"
//=============================================================================
// Constructor & Ceconstructor
//=============================================================================
CyhookHandler::CyhookHandler()
{
ContentLength = 0;
RangeStart = 0;
RangeEnd = -1;
cached = false;
keep_alive = 0;
_outIndent = 0;
status = HANDLED_NONE;
Method = M_UNKNOWN;
httpStatus = HTTP_NIL;
outType = plain;
LastModified=0;
}
CyhookHandler::~CyhookHandler()
{
}
//============================================================================= //=============================================================================
// Initialization of static variables // Initialization of static variables
//============================================================================= //=============================================================================

View File

@@ -123,6 +123,9 @@ class CyhookHandler
protected: protected:
static THookList HookList; static THookList HookList;
public: public:
CyhookHandler();
~CyhookHandler();
// Output // Output
std::string yresult; // content for response output std::string yresult; // content for response output
THandleStatus status; // status of Hook handling THandleStatus status; // status of Hook handling
@@ -144,9 +147,6 @@ public:
CStringList WebserverConfigList; // Reference (writable) to ConfigList CStringList WebserverConfigList; // Reference (writable) to ConfigList
CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks
THttp_Method Method; // HTTP Method (requested) THttp_Method Method; // HTTP Method (requested)
// constructor & deconstructor
CyhookHandler(){ContentLength = 0; RangeStart = 0; RangeEnd = -1; cached = false; keep_alive = 0; _outIndent = 0;status = HANDLED_NONE;Method = M_UNKNOWN;httpStatus = HTTP_NIL;outType = plain;LastModified=0;};
virtual ~CyhookHandler(){};
// hook slot handler // hook slot handler
static void attach(Cyhook *yh) // attach a Hook-Class to HookHandler static void attach(Cyhook *yh) // attach a Hook-Class to HookHandler