[Zrouter-src] ZRouter.org: push to zconf++ zconf++/Makefile zconf++/interfaces.h

zrouter-src at zrouter.org zrouter-src at zrouter.org
Wed Jan 18 23:17:57 UTC 2012


details:   /rev/4a57a1461eb4
changeset: 44:4a57a1461eb4
user:      "Nicolai Petri <nicolai at petri.dk>"
date:      Thu Jan 19 00:17:32 2012 +0100
description:
Remove a headerfile that really don't belong here.

diffstat:

 zconf++/Makefile     |   2 +-
 zconf++/interfaces.h |  65 ----------------------------------------------------
 2 files changed, 1 insertions(+), 66 deletions(-)

diffs (81 lines):

diff -r effe7193832e -r 4a57a1461eb4 zconf++/Makefile
--- a/zconf++/Makefile	Thu Jan 19 00:12:38 2012 +0100
+++ b/zconf++/Makefile	Thu Jan 19 00:17:32 2012 +0100
@@ -10,7 +10,7 @@
 	-L../libzhttp -lzhttpd
 
 
-#GLOBALHEADERS= zrouterhttp.h utils.h interfaces.h json_reader.h http_json_handler.h
+#GLOBALHEADERS= zrouterhttp.h utils.h json_reader.h http_json_handler.h
 
 PROG=	zconf++
 SRCS=	utils.cc boost.cc http_json_handler.cc model.cc json_reader.cc
diff -r effe7193832e -r 4a57a1461eb4 zconf++/interfaces.h
--- a/zconf++/interfaces.h	Thu Jan 19 00:12:38 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*-
- * Copyright (c) 2011  Nicolai Petri <nicolai at petri.dk>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef __INTERFACES__H
-#define __INTERFACES__H
-
-#include "model.h"
-
-namespace ZRouter
-{
-	class ZFrame;
-
-	// abstract base class
-	class ePacketReceivedFunctor
-	{
-		public:
-
-			// two possible functions to call member function. virtual cause derived
-			// classes will use a pointer to an object and a pointer to a member function
-			// to make the function call
-								 // call using operator
-			virtual bool operator()(const ZFrame &pFrame )=0;
-								 // call using function
-			virtual bool Call(const ZFrame &pFrame)=0;
-			virtual ~ePacketReceivedFunctor()  { ; } ;
-	};
-
-	class iFrameLayer
-	{
-		public:
-			virtual void queue_cmd(const ZFrame &p) = 0;
-			virtual void addListener(ePacketReceivedFunctor* pListener) = 0;
-			virtual void setIdle(bool pIdle) = 0;
-	};
-	class iEngine
-	{
-		public:
-			virtual iFrameLayer* framelayer() = 0;
-			virtual Model& model() = 0;
-	};
-
-};
-#endif							 // __INTERFACES__H


More information about the Zrouter-src mailing list