Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add QgsOWSServer class, move code from qgis_map_serv.cpp into exectio…
…n() functions
- Loading branch information
Showing
8 changed files
with
567 additions
and
583 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*************************************************************************** | ||
qgsowsserver.h | ||
-------------- | ||
begin : March 24, 2014 | ||
copyright : (C) 2006 by Marco Hugentobler | ||
email : marco dot hugentobler at sourcepole dot ch | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSOWSSERVER_H | ||
#define QGSOWSSERVER_H | ||
|
||
#include "qgsconfigparser.h" | ||
#include "qgsrequesthandler.h" | ||
|
||
class QgsOWSServer | ||
{ | ||
public: | ||
QgsOWSServer( const QString& configFilePath, const QMap<QString, QString>& parameters, QgsConfigParser* cp, QgsRequestHandler* rh ): | ||
mParameters( parameters ), mConfigParser( cp ), mRequestHandler( rh ), mConfigFilePath( configFilePath ) {} | ||
virtual ~QgsOWSServer() { delete mRequestHandler; } | ||
|
||
virtual void executeRequest() = 0; | ||
|
||
private: | ||
QgsOWSServer() {} | ||
|
||
protected: | ||
QMap<QString, QString> mParameters; | ||
QgsConfigParser* mConfigParser; | ||
QgsRequestHandler* mRequestHandler; | ||
QString mConfigFilePath; | ||
}; | ||
|
||
#endif // QGSOWSSERVER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.