asycxx-devel Mailing List for Asynchronous C++ Application framework (Page 3)
Status: Alpha
Brought to you by:
joe_steeve
You can subscribe to this list here.
2009 |
Jan
|
Feb
(16) |
Mar
(27) |
Apr
(44) |
May
(3) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Joe S. <js...@hi...> - 2009-03-24 10:36:35
|
On Tue, 2009-03-24 at 12:21 +0530, Karthik Balakrishnan wrote: > There are two ways of getting the source generated to a .deb file. > 1. using the standard _dpkg-buildpackage_ > 2. using _checkinstall_ Which of these can be integrated into the autotools build system? as in, something like 'make dist' should produce a .deb :) -- Joe Steeve HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: <viv...@us...> - 2009-03-24 09:16:09
|
Revision: 21 http://asycxx.svn.sourceforge.net/asycxx/?rev=21&view=rev Author: vivekanand83 Date: 2009-03-24 09:15:58 +0000 (Tue, 24 Mar 2009) Log Message: ----------- Removed reference of asycxx-config.h from installable headers. Modified Paths: -------------- trunk/include/asycxx/DataBuffer.h trunk/include/asycxx/Error.h trunk/include/asycxx/Factory.h trunk/include/asycxx/GimpleMsgBus.h trunk/include/asycxx/Listener.h trunk/include/asycxx/MsgBus.h trunk/include/asycxx/MsgHandler.h trunk/include/asycxx/Protocol.h trunk/include/asycxx/RAWCANListener.h trunk/include/asycxx/RAWCANTransport.h trunk/include/asycxx/Reactor.h trunk/include/asycxx/RefCounter.h trunk/include/asycxx/SelectReactor.h trunk/include/asycxx/TCPLLTransport.h trunk/include/asycxx/TCPListener.h trunk/include/asycxx/TCPTransport.h trunk/include/asycxx/Timer.h trunk/include/asycxx/Transport.h Modified: trunk/include/asycxx/DataBuffer.h =================================================================== --- trunk/include/asycxx/DataBuffer.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/DataBuffer.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__DATA_BUFFER_H__ #define __HIPRO_ASYCXX__DATA_BUFFER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include <sys/types.h> Modified: trunk/include/asycxx/Error.h =================================================================== --- trunk/include/asycxx/Error.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Error.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,10 +14,6 @@ #ifndef __HIPRO_ASYCXX__ERROR_H__ #define __HIPRO_ASYCXX__ERROR_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - #include <stdarg.h> #define THROW(x, fmt, ...) throw x("[%s:%d] " fmt "\n", \ Modified: trunk/include/asycxx/Factory.h =================================================================== --- trunk/include/asycxx/Factory.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Factory.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,10 +14,6 @@ #ifndef __HIPRO_ASYCXX__FACTORY_H__ #define __HIPRO_ASYCXX__FACTORY_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - #include "Error.h" #include "Reactor.h" #include "Transport.h" Modified: trunk/include/asycxx/GimpleMsgBus.h =================================================================== --- trunk/include/asycxx/GimpleMsgBus.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/GimpleMsgBus.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,10 +14,6 @@ #ifndef __HIPRO_ASYCXX__GIMPLE_MSG_BUS_H__ #define __HIPRO_ASYCXX__GIMPLE_MSG_BUS_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - #include <stdint.h> #include <deque> Modified: trunk/include/asycxx/Listener.h =================================================================== --- trunk/include/asycxx/Listener.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Listener.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,10 +14,6 @@ #ifndef __HIPRO_ASYCXX__LISTENER_H__ #define __HIPRO_ASYCXX__LISTENER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - #include "Error.h" #include "Reactor.h" Modified: trunk/include/asycxx/MsgBus.h =================================================================== --- trunk/include/asycxx/MsgBus.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/MsgBus.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__MSG_BUS_H__ #define __HIPRO_ASYCXX__MSG_BUS_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include "DataBuffer.h" Modified: trunk/include/asycxx/MsgHandler.h =================================================================== --- trunk/include/asycxx/MsgHandler.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/MsgHandler.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__MSG_HANDLER_H__ #define __HIPRO_ASYCXX__MSG_HANDLER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include "DataBuffer.h" #include "MsgBus.h" Modified: trunk/include/asycxx/Protocol.h =================================================================== --- trunk/include/asycxx/Protocol.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Protocol.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,10 +14,6 @@ #ifndef __HIPRO_ASYCXX__PROTOCOL_H__ #define __HIPRO_ASYCXX__PROTOCOL_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - #include "Error.h" #include "Reactor.h" #include "DataBuffer.h" Modified: trunk/include/asycxx/RAWCANListener.h =================================================================== --- trunk/include/asycxx/RAWCANListener.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/RAWCANListener.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__RAW_CAN_LISTENER_H__ #define __HIPRO_ASYCXX__RAW_CAN_LISTENER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include <sys/types.h> #include <arpa/inet.h> Modified: trunk/include/asycxx/RAWCANTransport.h =================================================================== --- trunk/include/asycxx/RAWCANTransport.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/RAWCANTransport.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__CAN_TRANSPORT_H__ #define __HIPRO_ASYCXX__CAN_TRANSPORT_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include "Error.h" #include "Reactor.h" Modified: trunk/include/asycxx/Reactor.h =================================================================== --- trunk/include/asycxx/Reactor.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Reactor.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__REACTOR_H__ #define __HIPRO_ASYCXX__REACTOR_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include <deque> Modified: trunk/include/asycxx/RefCounter.h =================================================================== --- trunk/include/asycxx/RefCounter.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/RefCounter.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__REF_COUNTER_H__ #define __HIPRO_ASYCXX__REF_COUNTER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include "Error.h" Modified: trunk/include/asycxx/SelectReactor.h =================================================================== --- trunk/include/asycxx/SelectReactor.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/SelectReactor.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__SELECT_REACTOR_H__ #define __HIPRO_ASYCXX__SELECT_REACTOR_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include <vector> Modified: trunk/include/asycxx/TCPLLTransport.h =================================================================== --- trunk/include/asycxx/TCPLLTransport.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/TCPLLTransport.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__TCP_LL_TRANSPORT_H__ #define __HIPRO_ASYCXX__TCP_LL_TRANSPORT_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include "Reactor.h" #include "TCPTransport.h" Modified: trunk/include/asycxx/TCPListener.h =================================================================== --- trunk/include/asycxx/TCPListener.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/TCPListener.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,10 +14,6 @@ #ifndef __HIPRO_ASYCXX__TCP_LISTENER_H__ #define __HIPRO_ASYCXX__TCP_LISTENER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - #include <sys/types.h> #include <arpa/inet.h> Modified: trunk/include/asycxx/TCPTransport.h =================================================================== --- trunk/include/asycxx/TCPTransport.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/TCPTransport.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__TCP_TRANSPORT_H__ #define __HIPRO_ASYCXX__TCP_TRANSPORT_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include "Error.h" #include "Reactor.h" Modified: trunk/include/asycxx/Timer.h =================================================================== --- trunk/include/asycxx/Timer.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Timer.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__TIMER_H__ #define __HIPRO_ASYCXX__TIMER_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include <vector> Modified: trunk/include/asycxx/Transport.h =================================================================== --- trunk/include/asycxx/Transport.h 2009-03-24 05:38:11 UTC (rev 20) +++ trunk/include/asycxx/Transport.h 2009-03-24 09:15:58 UTC (rev 21) @@ -14,9 +14,6 @@ #ifndef __HIPRO_ASYCXX__TRANSPORT_H__ #define __HIPRO_ASYCXX__TRANSPORT_H__ -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif #include <deque> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Karthik B. <ka...@hi...> - 2009-03-24 07:19:36
|
Hi Guys, There are two ways of getting the source generated to a .deb file. 1. using the standard _dpkg-buildpackage*_ *2. using _checkinstall*_ * 1. using _dpkg-buildpackage_: The source can be compiled to a .deb package using the following command: dpkg-buildpackage -rfakeroot -D -b references: a. http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html b. http://www.linux.gr/cgi-bin/man/man2html?dpkg-buildpackage+1 from the example given in reference a, i wasn't sure if -uc was required. to build using dpkg-buildpackage i believe we need to add some control files, which i am checking/reading now. further reading: a. http://www.tldp.org/HOWTO/Debian-Binary-Package-Building-HOWTO/ b. http://www.debian-administration.org/articles/336 , http://www.debian-administration.org/articles/337 You may wait for my second mail about this. 2. using _checkinstall_: checkinstall seems to be a simpler way to build a .deb file and is available in synaptic/debian package list by default. To build a .deb, first do the usual: a. ./configure b. make commands and finally issue: sudo checkinstall -D make install reference: http://www.linuxscrew.com/2008/06/11/create-deb-or-rpm-from-targz-with-checkinstall/ I am not sure if it is just enough to run the checkinstall command and if it would automagically identify the install directory from the configure.ac . If possible can you guys test this out ? -- Karthik HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: <viv...@us...> - 2009-03-24 05:38:15
|
Revision: 20 http://asycxx.svn.sourceforge.net/asycxx/?rev=20&view=rev Author: vivekanand83 Date: 2009-03-24 05:38:11 +0000 (Tue, 24 Mar 2009) Log Message: ----------- Added RawCan header to build system Modified Paths: -------------- trunk/include/Makefile.am Modified: trunk/include/Makefile.am =================================================================== --- trunk/include/Makefile.am 2009-03-23 08:55:57 UTC (rev 19) +++ trunk/include/Makefile.am 2009-03-24 05:38:11 UTC (rev 20) @@ -20,4 +20,7 @@ asycxx/MsgHandler.h \ asycxx/GimpleMsgBus.h \ asycxx/_asycxx.h \ - asycxx/asycxx.h + asycxx/asycxx.h \ + asycxx/RAWCANTransport.h \ + asycxx/RAWCANListener.h + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <viv...@us...> - 2009-03-23 08:56:03
|
Revision: 19 http://asycxx.svn.sourceforge.net/asycxx/?rev=19&view=rev Author: vivekanand83 Date: 2009-03-23 08:55:57 +0000 (Mon, 23 Mar 2009) Log Message: ----------- [ticket:5] TCP socket not closed when bind or listen to socket fails. Fixed Modified Paths: -------------- trunk/src/TCPListener.cxx Modified: trunk/src/TCPListener.cxx =================================================================== --- trunk/src/TCPListener.cxx 2009-03-23 08:45:18 UTC (rev 18) +++ trunk/src/TCPListener.cxx 2009-03-23 08:55:57 UTC (rev 19) @@ -141,6 +141,7 @@ iret = bind (m_Socket, (struct sockaddr *)&saddr, sizeof (saddr)); if (iret == -1) { + close (m_Socket); THROW (RunTimeError, "TCPListener: %s : binding socket=%u to %s", strerror (errno), m_Socket, m_BindAddr_str); @@ -149,6 +150,7 @@ iret = listen (m_Socket, 5); if (iret == -1) { + close (m_Socket); THROW (RunTimeError, "TCPListener: %s : putting socket=%u to listen on %s", strerror (errno), m_Socket, m_BindAddr_str); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <viv...@us...> - 2009-03-23 08:45:21
|
Revision: 18 http://asycxx.svn.sourceforge.net/asycxx/?rev=18&view=rev Author: vivekanand83 Date: 2009-03-23 08:45:18 +0000 (Mon, 23 Mar 2009) Log Message: ----------- Raw CAN support added. Modified Paths: -------------- trunk/configure.ac trunk/examples/Makefile.am trunk/src/Makefile.am trunk/src/asycxx-common.h Added Paths: ----------- trunk/examples/canserver/ trunk/examples/canserver/Canserver.cxx trunk/examples/canserver/Makefile.am trunk/include/asycxx/RAWCANListener.h trunk/include/asycxx/RAWCANTransport.h trunk/src/RAWCANListener.cxx trunk/src/RAWCANTransport.cxx Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-03-17 09:24:06 UTC (rev 17) +++ trunk/configure.ac 2009-03-23 08:45:18 UTC (rev 18) @@ -70,6 +70,7 @@ include/Makefile examples/Makefile examples/echoserver/Makefile +examples/canserver/Makefile asycxx-0.1.pc ]) AC_OUTPUT Modified: trunk/examples/Makefile.am =================================================================== --- trunk/examples/Makefile.am 2009-03-17 09:24:06 UTC (rev 17) +++ trunk/examples/Makefile.am 2009-03-23 08:45:18 UTC (rev 18) @@ -1,2 +1,2 @@ -SUBDIRS = echoserver +SUBDIRS = echoserver canserver Added: trunk/examples/canserver/Canserver.cxx =================================================================== --- trunk/examples/canserver/Canserver.cxx (rev 0) +++ trunk/examples/canserver/Canserver.cxx 2009-03-23 08:45:18 UTC (rev 18) @@ -0,0 +1,79 @@ + +/******************************************************************** + * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All + * rights reserved. + * + * This program and the accompanying materials are made available + * under the terms described in the LICENSE file which accompanies + * this distribution. If the LICENSE file was not attached to this + * distribution or for further clarifications, please contact + * le...@hi.... + * + *******************************************************************/ + +#include <memory> + +#include <asycxx/Logger.h> +#include <asycxx/Error.h> +#include <asycxx/Timer.h> +#include <asycxx/SelectReactor.h> +#include <asycxx/Protocol.h> +#include <asycxx/Factory.h> +#include <asycxx/RAWCANListener.h> + +Logger *Log; + +class RAWCANServerProtocol : public Protocol +{ + public: + RAWCANServerProtocol (Reactor *reactor, Factory *factory, Transport +*transport) + : Protocol (reactor, factory, transport) + {} + ~RAWCANServerProtocol () {} + + void DataAvailable (DataBuffer *data) + { + printf ("CANSERVER: Got data of size %d\n", data->Len()); + } +}; + + +class RAWCANServerProtocolFactory : public Factory +{ + public: + RAWCANServerProtocolFactory (Reactor *reactor) : Factory (reactor) + {} + ~RAWCANServerProtocolFactory () {} + + RAWCANServerProtocol * GetProtocol (Transport *trans) + { + return new RAWCANServerProtocol (m_Reactor, this, trans); + } +}; + + +int +main () +{ + Reactor *reactor; + + Log = new Logger(); + Log->EnableConsole(); + + reactor = new SelectReactor (); + Timer::Init (reactor); + + RAWCANServerProtocolFactory CANfactory (reactor); + RAWCANListener RAWCANlistener (reactor, &CANfactory, "vcan0"); + reactor->Run (); +} + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Added: trunk/examples/canserver/Makefile.am =================================================================== --- trunk/examples/canserver/Makefile.am (rev 0) +++ trunk/examples/canserver/Makefile.am 2009-03-23 08:45:18 UTC (rev 18) @@ -0,0 +1,14 @@ + +noinst_PROGRAMS = CanServer + +CanServer_SOURCES = Canserver.cxx +CanServer_LDADD = $(top_srcdir)/src/libasycxx-0.1.la +CanServer_CPPFLAGS = -I$(top_srcdir)/include +CanServer_LDFLAGS = -L$(top_srcdir)/src + + +# Local Variables: +# mode: makefile +# indent-tabs-mode: nil +# tab-width: 4 +# End: Added: trunk/include/asycxx/RAWCANListener.h =================================================================== --- trunk/include/asycxx/RAWCANListener.h (rev 0) +++ trunk/include/asycxx/RAWCANListener.h 2009-03-23 08:45:18 UTC (rev 18) @@ -0,0 +1,60 @@ + +/******************************************************************** + * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All + * rights reserved. + * + * This program and the accompanying materials are made available + * under the terms described in the LICENSE file which accompanies + * this distribution. If the LICENSE file was not attached to this + * distribution or for further clarifications, please contact + * le...@hi.... + * + *******************************************************************/ + +#ifndef __HIPRO_ASYCXX__RAW_CAN_LISTENER_H__ +#define __HIPRO_ASYCXX__RAW_CAN_LISTENER_H__ + +#ifdef HAVE_CONFIG_H +#include <asycxx-config.h> +#endif + +#include <sys/types.h> +#include <arpa/inet.h> +#include <linux/can.h> +#include <linux/can/raw.h> + +#include "Error.h" +#include "Listener.h" +#include "Factory.h" +#include "Deferred.h" +#include "Reactor.h" + +class RAWCANListener : public Listener +{ + public: + + RAWCANListener (Reactor *reactor, Factory *factory, const char *interface); + virtual ~RAWCANListener (); + + protected: + Reactor *m_Reactor; + Factory *m_Factory; + Deferred *m_ReactorDeferred; + + int m_Socket; + char m_Interface[8]; + bool m_bSetupNoDelay; + protected: + void Init (Reactor *reactor, Factory *factory, const char *interface); +}; + +#endif /* __HIPRO_ASYCXX__RAW_CAN_LISTENER_H__*/ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Added: trunk/include/asycxx/RAWCANTransport.h =================================================================== --- trunk/include/asycxx/RAWCANTransport.h (rev 0) +++ trunk/include/asycxx/RAWCANTransport.h 2009-03-23 08:45:18 UTC (rev 18) @@ -0,0 +1,48 @@ + +/******************************************************************** + * Copyright (C), 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All + * rights reserved. + * + * This program and the accompanying materials are made available + * under the terms described in the LICENSE file which accompanies + * this distribution. If the LICENSE file was not attached to this + * distribution or for further clarifications, please contact + * le...@hi.... + * + *******************************************************************/ + +#ifndef __HIPRO_ASYCXX__CAN_TRANSPORT_H__ +#define __HIPRO_ASYCXX__CAN_TRANSPORT_H__ + +#ifdef HAVE_CONFIG_H +#include <asycxx-config.h> +#endif + +#include "Error.h" +#include "Reactor.h" +#include "DataBuffer.h" +#include "Transport.h" + +class RAWCANTransport : public Transport +{ + public: + RAWCANTransport (Reactor *reactor, int fd); + virtual ~RAWCANTransport (); + + protected: + Result doWrite (void); + Result doRead (DataBuffer *data); + void doDisconnect (void); + +}; + +#endif /* __HIPRO_ASYCXX__CAN_TRANSPORT_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Makefile.am =================================================================== --- trunk/src/Makefile.am 2009-03-17 09:24:06 UTC (rev 17) +++ trunk/src/Makefile.am 2009-03-23 08:45:18 UTC (rev 18) @@ -21,8 +21,11 @@ MsgBus.cxx \ MsgHandler.cxx \ GimpleMsgBus.cxx \ - core.cxx + core.cxx \ + RAWCANTransport.cxx \ + RAWCANListener.cxx + libasycxx_0_1_la_CPPFLAGS = -I$(top_srcdir)/include libasycxx_0_1_la_CXXFLAGS = -O2 libasycxx_0_1_la_LDFLAGS = -version-info 0:1:0 Added: trunk/src/RAWCANListener.cxx =================================================================== --- trunk/src/RAWCANListener.cxx (rev 0) +++ trunk/src/RAWCANListener.cxx 2009-03-23 08:45:18 UTC (rev 18) @@ -0,0 +1,156 @@ +/******************************************************************** + * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All + * rights reserved. + * + * This program and the accompanying materials are made available + * under the terms described in the LICENSE file which accompanies + * this distribution. If the LICENSE file was not attached to this + * distribution or for further clarifications, please contact + * le...@hi.... + * + *******************************************************************/ + +#ifdef HAVE_CONFIG_H +#include <asycxx-config.h> +#endif + +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> +#include <netinet/tcp.h> +#include <net/if.h> +#include <linux/can.h> +#include <linux/can/raw.h> + +#include <string.h> +#include <errno.h> +#include <unistd.h> + +#include "asycxx-common.h" +#include <asycxx/Error.h> +#include <asycxx/Factory.h> +#include <asycxx/Protocol.h> +#include <asycxx/RAWCANTransport.h> +#include <asycxx/RAWCANListener.h> + + +#include <sys/ioctl.h> + +/* At time of writing, these constants are not defined in the headers */ +#ifndef PF_CAN +#define PF_CAN 29 +#endif + +#ifndef AF_CAN +#define AF_CAN PF_CAN +#endif + +/** + * \brief ctor to put RAWCANListener on interface + * + * \param[in] reactor The reactor to hook to + * \param[in] factory The factory to use to produce protocols to + * handle new connections + * \param[in] interface The CAN interface to listen to + * + * \details This constructor puts the RAWCANListener object to listen on + * the specified interface. + */ +RAWCANListener::RAWCANListener (Reactor *reactor, Factory *factory, + const char *interface) +{ + Init (reactor, factory, interface); +} + + +/* + * \brief dtor + */ +RAWCANListener::~RAWCANListener () +{ + if (m_Socket != -1) + { + close (m_Socket); + } +} + + +/** + * \brief Initialize the RAWCANListener + * + * \param[in] reactor The reactor to hook to + * \param[in] factory The factory to use to produce protocols + * \param[in] interface The CAN interface to listen to + + * \details This method is the backend method for all the + * constructors. This creates a socketbinds it to the given interface and + * hooks it up to the reactor. + */ +void +RAWCANListener::Init (Reactor *reactor, Factory *factory, const char *interface) +{ + int iret; + + ASSERT ((factory != NULL), "checking parameters"); + ASSERT ((reactor != NULL), "checking parameters"); + ASSERT ((interface != NULL), "checking parameters"); + + m_Factory = factory; + m_Reactor = reactor; + strncpy(m_Interface, interface, strlen(interface) + 1); + + /* Create the socket */ + m_Socket = socket( PF_CAN, SOCK_RAW, CAN_RAW ); + if (m_Socket == -1) + { + THROW (RunTimeError, + "RAWCANListener: %s : creating socket to listen on %s", + strerror (errno), m_Interface); + } + + /* Locate the interface we wish to use */ + struct ifreq ifr; + strcpy(ifr.ifr_name, m_Interface); + iret = ioctl(m_Socket, SIOCGIFINDEX, &ifr); /* ifr.ifr_ifindex gets filled + * with that device's index */ + if (iret < 0) + { + close(m_Socket); + THROW (RunTimeError, + "RAWCANListener: %s : locating interface (ioctl) %s", + strerror (errno), m_Interface); + } + + /* Select that CAN interface, and bind the socket to it. */ + struct sockaddr_can addr; + addr.can_family = AF_CAN; + addr.can_ifindex = ifr.ifr_ifindex; + + iret = bind(m_Socket, (struct sockaddr*)&addr, sizeof(addr)); + if (iret < 0) + { + close(m_Socket); + THROW (RunTimeError, + "RAWCANListener: %s : binding CAN to %s", + strerror (errno), m_Interface); + } + + /* register the non-blocking FD with the reactor */ + SetFDAsNonBlocking (m_Socket); + Protocol *proto; + /* create a protocol using the factory */ + RAWCANTransport *trans; + trans = new RAWCANTransport (m_Reactor, m_Socket); + proto = m_Factory->GetProtocol (trans); + proto->BuildProtocol (); +} + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Added: trunk/src/RAWCANTransport.cxx =================================================================== --- trunk/src/RAWCANTransport.cxx (rev 0) +++ trunk/src/RAWCANTransport.cxx 2009-03-23 08:45:18 UTC (rev 18) @@ -0,0 +1,138 @@ +/******************************************************************** + * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All + * rights reserved. + * + * This program and the accompanying materials are made available + * under the terms described in the LICENSE file which accompanies + * this distribution. If the LICENSE file was not attached to this + * distribution or for further clarifications, please contact + * le...@hi.... + * + *******************************************************************/ + +#ifdef HAVE_CONFIG_H +#include <asycxx-config.h> +#endif + +#include <errno.h> +#include <unistd.h> +#include <string.h> +#include <deque> + +#include <sys/socket.h> +#include <errno.h> + +#include "asycxx-common.h" +#include <asycxx/Error.h> +#include <asycxx/Protocol.h> +#include <asycxx/RAWCANTransport.h> + +#define RAW_CAN_FRAME_SIZE 16 + +RAWCANTransport::RAWCANTransport (Reactor *reactor, int fd) + : Transport (reactor, fd) +{ + ctorLOG (__FUNCTION__); + configureReadBufferSize (RAW_CAN_FRAME_SIZE); +} + + +RAWCANTransport::~RAWCANTransport () +{ + dtorLOG(__FUNCTION__); +} + + +Result +RAWCANTransport::doRead (DataBuffer *data) +{ + ASSERT ((data != NULL), "checking parameters"); + ssize_t rlen; + + __doRead__again: + rlen = read (m_Fd, data->Data(), data->BufferLen()); + if (rlen == -1) + { + if (errno == EINTR) + { + goto __doRead__again; + } + else if (errno == EAGAIN) + { + data->Len(0); + return Result_Success; + } + else + { + ERR ("%s: reading from fd=%d", strerror(errno), m_Fd); + return Result_Error; + } + } + + /* check for end-of-file */ + if (rlen == 0) + { + ERR ("EoF on fd=%d", m_Fd); + return Result_Error; + } + data->Len(rlen); + + return Result_Success; +} + +Result +RAWCANTransport::doWrite (void) +{ + ssize_t wrote; + ssize_t wlen, to_wlen; + DataBuffer *data; + void *bfr; + + wrote = 0; + while (m_writeBuffers.size() > 0) + { + data = m_writeBuffers[0]; + to_wlen = data->Len() - data->Processed(); + bfr = data->UnProcessed (); + + wlen = write (m_Fd, bfr, to_wlen); + if (wlen == -1) + { + if (errno == EINTR) { continue; } + else if (errno == EAGAIN) { return Result_Pending; } + else + { + ERR ("%s: writing DataBuffer<%p>::data<%p>,len=%d to fd=%d", + strerror (errno), data, bfr, to_wlen, m_Fd); + return Result_Error; + } + } + + /* update pointers */ + data->Processed((data->Processed() + wlen)); + wrote += wlen; + + if (data->Processed() == data->Len()) + { + m_writeBuffers.pop_front(); + data->DisOwn(); + } + } + + return Result_Success; +} + +void +RAWCANTransport::doDisconnect (void) +{ + +} + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/asycxx-common.h =================================================================== --- trunk/src/asycxx-common.h 2009-03-17 09:24:06 UTC (rev 17) +++ trunk/src/asycxx-common.h 2009-03-23 08:45:18 UTC (rev 18) @@ -35,19 +35,19 @@ #define dummyLog(fmt, ...) -#if HMI_CTRL_VERBOSE_LEVEL >= 1 +#if ASYCXX_VERBOSE_LEVEL >= 1 #define LOG1 LOG #else #define LOG1 dummyLog #endif -#if HMI_CTRL_VERBOSE_LEVEL >= 2 +#if ASYCXX_VERBOSE_LEVEL >= 2 #define LOG2 LOG #else #define LOG2 dummyLog #endif -#if HMI_CTRL_VERBOSE_LEVEL >= 3 +#if ASYCXX_VERBOSE_LEVEL >= 3 #define LOG3 LOG #else #define LOG3 dummyLog This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Joe S. <js...@hi...> - 2009-03-23 08:41:23
|
On Mon, 2009-03-23 at 11:54 +0530, vivek wrote: .. Cool. Push it in :) -- Joe Steeve HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: vivek <vi...@hi...> - 2009-03-23 06:24:20
|
-- Vivek Anand Hipro IT Solutions |
From: <joe...@us...> - 2009-03-17 09:24:17
|
Revision: 17 http://asycxx.svn.sourceforge.net/asycxx/?rev=17&view=rev Author: joe_steeve Date: 2009-03-17 09:24:06 +0000 (Tue, 17 Mar 2009) Log Message: ----------- Release 0.1 Added Paths: ----------- tags/releases/0.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-17 09:17:27
|
Revision: 16 http://asycxx.svn.sourceforge.net/asycxx/?rev=16&view=rev Author: joe_steeve Date: 2009-03-17 09:17:26 +0000 (Tue, 17 Mar 2009) Log Message: ----------- creating a folder to contain release tags Added Paths: ----------- tags/releases/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Joe S. <js...@hi...> - 2009-03-17 09:11:36
|
On Tue, 2009-03-17 at 12:46 +0530, Karthik Balakrishnan wrote: > That file simply contains some common functions used > everywhere. It makes sense to put them as static functions in > a 'Utils' class, coz we dont want to associate them to an > object. But, well. It is totally internal to us, so I dont > care. > > Fine. If possible, i'll check if I can get it done (later obviously) Yeah. It is not important now. -- Joe Steeve HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: Karthik B. <ka...@hi...> - 2009-03-17 07:16:26
|
2009/3/17 Joe Steeve <js...@hi...> > Alright. In fact it makes sense to move 'api documentation' to the .h > files. All public and protected methods need to come in the api docs. > The private methods can be simply documented (without doxygen tags) for > our own reference. Taken. > That file simply contains some common functions used everywhere. It > makes sense to put them as static functions in a 'Utils' class, coz we > dont want to associate them to an object. But, well. It is totally > internal to us, so I dont care. Fine. If possible, i'll check if I can get it done (later obviously) > > Since this method is used within the asycxx code, i'll create the > > class structure in the .cxx file itself. > > I did not understand this. It was about the core.cxx file itself. Ignore it. I got what is needed. -- Karthik HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: Joe S. <js...@hi...> - 2009-03-17 06:59:02
|
On Tue, 2009-03-17 at 12:06 +0530, Karthik Balakrishnan wrote: > Alright. I got few files fixed as noted. But I wasn't sure if i was on > the right track. I'll send you the patch file tonight/later this > evening. Alright. In fact it makes sense to move 'api documentation' to the .h files. All public and protected methods need to come in the api docs. The private methods can be simply documented (without doxygen tags) for our own reference. > I need 1 more clarification. There is a file core.cxx which is not > part of/class in itself. Should I alter this file and call it say > Utils class ? That file simply contains some common functions used everywhere. It makes sense to put them as static functions in a 'Utils' class, coz we dont want to associate them to an object. But, well. It is totally internal to us, so I dont care. > Since this method is used within the asycxx code, i'll create the > class structure in the .cxx file itself. I did not understand this. -- Joe Steeve HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: Karthik B. <ka...@hi...> - 2009-03-17 06:36:48
|
2009/3/17 Joe Steeve <js...@hi...> > Ideally, the 'api documentation' should be in the header files. i.e., > anyone who wants to use the API should be looking into the header files > and not the .cxx files. So, the doxygen comments that describe the API > should be in the .h files. The .cxx files should have comments that > explain how things work. But, these comments need not go into doxygen. Alright. I got few files fixed as noted. But I wasn't sure if i was on the right track. I'll send you the patch file tonight/later this evening. > Yeah, as first step, all the classes should be documented. So, if there > is missing documentation, please add it. Ok. I need 1 more clarification. There is a file core.cxx which is not part of/class in itself. Should I alter this file and call it say Utils class ? Since this method is used within the asycxx code, i'll create the class structure in the .cxx file itself. -- Karthik HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: Joe S. <js...@hi...> - 2009-03-17 06:01:54
|
On Tue, 2009-03-17 at 00:23 +0530, Karthik Balakrishnan wrote: > I have a question for documentation of asycxx. Why is that you had put > the comments in the .cxx file ? Should we move it to .h ? The reason > being you have few more member functions which are mentioned in > your .h file which is not covered in the existing documentation you > have. (refer DataBuffer class files). Ideally, the 'api documentation' should be in the header files. i.e., anyone who wants to use the API should be looking into the header files and not the .cxx files. So, the doxygen comments that describe the API should be in the .h files. The .cxx files should have comments that explain how things work. But, these comments need not go into doxygen. > I was successfully make my first documentation using doxygen. I can > see you have already put some doc comments for few files, should I be > completing the rest, similar to what you've done ? Is there anything I > am missing here ? Yeah, as first step, all the classes should be documented. So, if there is missing documentation, please add it. -- Joe Steeve HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: Karthik B. <ka...@hi...> - 2009-03-16 18:53:18
|
Hi Joe, I have a question for documentation of asycxx. Why is that you had put the comments in the .cxx file ? Should we move it to .h ? The reason being you have few more member functions which are mentioned in your .h file which is not covered in the existing documentation you have. (refer DataBuffer class files). I was successfully make my first documentation using doxygen. I can see you have already put some doc comments for few files, should I be completing the rest, similar to what you've done ? Is there anything I am missing here ? -- Karthik HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/ |
From: <joe...@us...> - 2009-03-12 15:12:38
|
Revision: 15 http://asycxx.svn.sourceforge.net/asycxx/?rev=15&view=rev Author: joe_steeve Date: 2009-03-12 15:12:33 +0000 (Thu, 12 Mar 2009) Log Message: ----------- [ticket:3] headers should not be linked into src/ (fixed) The configure script was creating to all the asycxx headers in the src/ folder. This means, we need to remember to modify the configure.ac everytime we add a new header. This commit removes that dependancy. From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/configure.ac trunk/src/DataBuffer.cxx trunk/src/Deferred.cxx trunk/src/Error.cxx trunk/src/Factory.cxx trunk/src/GimpleMsgBus.cxx trunk/src/Listener.cxx trunk/src/Logger.cxx trunk/src/Makefile.am trunk/src/MsgBus.cxx trunk/src/MsgHandler.cxx trunk/src/Protocol.cxx trunk/src/Reactor.cxx trunk/src/RefCounter.cxx trunk/src/SelectReactor.cxx trunk/src/TCPLLTransport.cxx trunk/src/TCPListener.cxx trunk/src/TCPTransport.cxx trunk/src/Timer.cxx trunk/src/Transport.cxx trunk/src/asycxx-common.h trunk/src/core.cxx Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/configure.ac 2009-03-12 15:12:33 UTC (rev 15) @@ -72,23 +72,4 @@ examples/echoserver/Makefile asycxx-0.1.pc ]) -AC_CONFIG_LINKS(src/Logger.h:include/asycxx/Logger.h - src/Error.h:include/asycxx/Error.h - src/Deferred.h:include/asycxx/Deferred.h - src/RefCounter.h:include/asycxx/RefCounter.h - src/DataBuffer.h:include/asycxx/DataBuffer.h - src/Reactor.h:include/asycxx/Reactor.h - src/SelectReactor.h:include/asycxx/SelectReactor.h - src/Timer.h:include/asycxx/Timer.h - src/Transport.h:include/asycxx/Transport.h - src/Listener.h:include/asycxx/Listener.h - src/TCPTransport.h:include/asycxx/TCPTransport.h - src/TCPListener.h:include/asycxx/TCPListener.h - src/TCPLLTransport.h:include/asycxx/TCPLLTransport.h - src/Protocol.h:include/asycxx/Protocol.h - src/Factory.h:include/asycxx/Factory.h - src/MsgBus.h:include/asycxx/MsgBus.h - src/MsgHandler.h:include/asycxx/MsgHandler.h - src/GimpleMsgBus.h:include/asycxx/GimpleMsgBus.h - src/_asycxx.h:include/asycxx/_asycxx.h) AC_OUTPUT Modified: trunk/src/DataBuffer.cxx =================================================================== --- trunk/src/DataBuffer.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/DataBuffer.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -18,7 +18,7 @@ #include <cstdlib> #include "asycxx-common.h" -#include "DataBuffer.h" +#include <asycxx/DataBuffer.h> void Modified: trunk/src/Deferred.cxx =================================================================== --- trunk/src/Deferred.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Deferred.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -20,8 +20,8 @@ #include <string.h> #include "asycxx-common.h" -#include "Error.h" -#include "Deferred.h" +#include <asycxx/Error.h> +#include <asycxx/Deferred.h> /** Modified: trunk/src/Error.cxx =================================================================== --- trunk/src/Error.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Error.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -20,7 +20,7 @@ #include <execinfo.h> #include "asycxx-common.h" -#include "Error.h" +#include <asycxx/Error.h> void Error::doError (const char *fmt, va_list vargs) Modified: trunk/src/Factory.cxx =================================================================== --- trunk/src/Factory.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Factory.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -17,9 +17,9 @@ #include "asycxx-common.h" -#include "Error.h" -#include "Reactor.h" -#include "Factory.h" +#include <asycxx/Error.h> +#include <asycxx/Reactor.h> +#include <asycxx/Factory.h> /** Modified: trunk/src/GimpleMsgBus.cxx =================================================================== --- trunk/src/GimpleMsgBus.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/GimpleMsgBus.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -19,14 +19,13 @@ #include <arpa/inet.h> #include "asycxx-common.h" -#include "Error.h" +#include <asycxx/Error.h> +#include <asycxx/Transport.h> +#include <asycxx/Factory.h> +#include <asycxx/MsgHandler.h> +#include <asycxx/GimpleMsgBus.h> -#include "Transport.h" -#include "Factory.h" -#include "MsgHandler.h" -#include "GimpleMsgBus.h" - GimpleMsgBus::GimpleMsgBus (Reactor *reactor, Factory *factory, Transport *transport, MsgHandler *handler) : Protocol (reactor, factory, transport), Modified: trunk/src/Listener.cxx =================================================================== --- trunk/src/Listener.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Listener.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -17,8 +17,8 @@ #include "asycxx-common.h" -#include "Error.h" -#include "Listener.h" +#include <asycxx/Error.h> +#include <asycxx/Listener.h> Listener::Listener () Modified: trunk/src/Logger.cxx =================================================================== --- trunk/src/Logger.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Logger.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -18,7 +18,7 @@ #include <stdio.h> #include <stdarg.h> -#include "Logger.h" +#include <asycxx/Logger.h> Logger::Logger () Modified: trunk/src/Makefile.am =================================================================== --- trunk/src/Makefile.am 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Makefile.am 2009-03-12 15:12:33 UTC (rev 15) @@ -23,5 +23,6 @@ GimpleMsgBus.cxx \ core.cxx +libasycxx_0_1_la_CPPFLAGS = -I$(top_srcdir)/include libasycxx_0_1_la_CXXFLAGS = -O2 libasycxx_0_1_la_LDFLAGS = -version-info 0:1:0 Modified: trunk/src/MsgBus.cxx =================================================================== --- trunk/src/MsgBus.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/MsgBus.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -15,9 +15,9 @@ #endif #include "asycxx-common.h" -#include "Error.h" -#include "MsgBus.h" -#include "MsgHandler.h" +#include <asycxx/Error.h> +#include <asycxx/MsgBus.h> +#include <asycxx/MsgHandler.h> MsgBus::MsgBus (MsgHandler *handler) { Modified: trunk/src/MsgHandler.cxx =================================================================== --- trunk/src/MsgHandler.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/MsgHandler.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -16,8 +16,8 @@ #endif #include "asycxx-common.h" -#include "Error.h" -#include "MsgHandler.h" +#include <asycxx/Error.h> +#include <asycxx/MsgHandler.h> MsgHandler::MsgHandler () { Modified: trunk/src/Protocol.cxx =================================================================== --- trunk/src/Protocol.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Protocol.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -17,8 +17,8 @@ #include "asycxx-common.h" -#include "Error.h" -#include "Protocol.h" +#include <asycxx/Error.h> +#include <asycxx/Protocol.h> Protocol::Protocol (Reactor *reactor, Factory *factory, Transport *transport) Modified: trunk/src/Reactor.cxx =================================================================== --- trunk/src/Reactor.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Reactor.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -27,8 +27,8 @@ #include <exception> #include "asycxx-common.h" -#include "Reactor.h" -#include "Deferred.h" +#include <asycxx/Reactor.h> +#include <asycxx/Deferred.h> ////////////////////////////////////////////////////////////////////////////// Modified: trunk/src/RefCounter.cxx =================================================================== --- trunk/src/RefCounter.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/RefCounter.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -16,8 +16,8 @@ #endif #include "asycxx-common.h" -#include "Error.h" -#include "RefCounter.h" +#include <asycxx/Error.h> +#include <asycxx/RefCounter.h> /** Modified: trunk/src/SelectReactor.cxx =================================================================== --- trunk/src/SelectReactor.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/SelectReactor.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -20,8 +20,8 @@ #include <string.h> #include "asycxx-common.h" -#include "Error.h" -#include "SelectReactor.h" +#include <asycxx/Error.h> +#include <asycxx/SelectReactor.h> /** Modified: trunk/src/TCPLLTransport.cxx =================================================================== --- trunk/src/TCPLLTransport.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/TCPLLTransport.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -23,9 +23,9 @@ #include <netinet/tcp.h> #include "asycxx-common.h" -#include "Error.h" -#include "Protocol.h" -#include "TCPLLTransport.h" +#include <asycxx/Error.h> +#include <asycxx/Protocol.h> +#include <asycxx/TCPLLTransport.h> TCPLLTransport::TCPLLTransport (Reactor *reactor, int fd) Modified: trunk/src/TCPListener.cxx =================================================================== --- trunk/src/TCPListener.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/TCPListener.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -26,11 +26,11 @@ #include <unistd.h> #include "asycxx-common.h" -#include "Error.h" -#include "Factory.h" -#include "Protocol.h" -#include "TCPTransport.h" -#include "TCPListener.h" +#include <asycxx/Error.h> +#include <asycxx/Factory.h> +#include <asycxx/Protocol.h> +#include <asycxx/TCPTransport.h> +#include <asycxx/TCPListener.h> /** Modified: trunk/src/TCPTransport.cxx =================================================================== --- trunk/src/TCPTransport.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/TCPTransport.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -24,9 +24,9 @@ #include <errno.h> #include "asycxx-common.h" -#include "Error.h" -#include "Protocol.h" -#include "TCPTransport.h" +#include <asycxx/Error.h> +#include <asycxx/Protocol.h> +#include <asycxx/TCPTransport.h> TCPTransport::TCPTransport (Reactor *reactor, int fd) Modified: trunk/src/Timer.cxx =================================================================== --- trunk/src/Timer.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Timer.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -44,8 +44,8 @@ #include <vector> #include "asycxx-common.h" -#include "Error.h" -#include "Timer.h" +#include <asycxx/Error.h> +#include <asycxx/Timer.h> /*****************************************************************************/ Reactor * Timer::m_Reactor = NULL; Modified: trunk/src/Transport.cxx =================================================================== --- trunk/src/Transport.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/Transport.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -18,9 +18,9 @@ #include <unistd.h> #include "asycxx-common.h" -#include "Error.h" -#include "Transport.h" -#include "Protocol.h" +#include <asycxx/Error.h> +#include <asycxx/Transport.h> +#include <asycxx/Protocol.h> /** * \brief ctor Modified: trunk/src/asycxx-common.h =================================================================== --- trunk/src/asycxx-common.h 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/asycxx-common.h 2009-03-12 15:12:33 UTC (rev 15) @@ -17,8 +17,8 @@ #include <stdio.h> #include <stdlib.h> -#include "_asycxx.h" -#include "Logger.h" +#include <asycxx/_asycxx.h> +#include <asycxx/Logger.h> extern Logger *Log; Modified: trunk/src/core.cxx =================================================================== --- trunk/src/core.cxx 2009-03-12 12:57:59 UTC (rev 14) +++ trunk/src/core.cxx 2009-03-12 15:12:33 UTC (rev 15) @@ -22,7 +22,7 @@ #include <fcntl.h> #include "asycxx-common.h" -#include "Error.h" +#include <asycxx/Error.h> h_msecs_t GetCurrentTimeStamp (void) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 12:58:06
|
Revision: 14 http://asycxx.svn.sourceforge.net/asycxx/?rev=14&view=rev Author: joe_steeve Date: 2009-03-12 12:57:59 +0000 (Thu, 12 Mar 2009) Log Message: ----------- [ticket:2] A simple EchoServer example The echo-server simply echos back whatever we give. Demonstrates on using asycxx. From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/Makefile.am trunk/configure.ac Added Paths: ----------- trunk/examples/ trunk/examples/Makefile.am trunk/examples/echoserver/ trunk/examples/echoserver/EchoServer.cxx trunk/examples/echoserver/Makefile.am Modified: trunk/Makefile.am =================================================================== --- trunk/Makefile.am 2009-03-12 12:56:40 UTC (rev 13) +++ trunk/Makefile.am 2009-03-12 12:57:59 UTC (rev 14) @@ -1,5 +1,5 @@ # -*- mode: makefile; indent-tabs-mode: nil; tab-width: 4; -*- -SUBDIRS = src include +SUBDIRS = src include examples pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = asycxx-0.1.pc Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-03-12 12:56:40 UTC (rev 13) +++ trunk/configure.ac 2009-03-12 12:57:59 UTC (rev 14) @@ -68,6 +68,8 @@ Makefile src/Makefile include/Makefile +examples/Makefile +examples/echoserver/Makefile asycxx-0.1.pc ]) AC_CONFIG_LINKS(src/Logger.h:include/asycxx/Logger.h Added: trunk/examples/Makefile.am =================================================================== --- trunk/examples/Makefile.am (rev 0) +++ trunk/examples/Makefile.am 2009-03-12 12:57:59 UTC (rev 14) @@ -0,0 +1,2 @@ + +SUBDIRS = echoserver Added: trunk/examples/echoserver/EchoServer.cxx =================================================================== --- trunk/examples/echoserver/EchoServer.cxx (rev 0) +++ trunk/examples/echoserver/EchoServer.cxx 2009-03-12 12:57:59 UTC (rev 14) @@ -0,0 +1,79 @@ + +/******************************************************************** + * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All + * rights reserved. + * + * This program and the accompanying materials are made available + * under the terms described in the LICENSE file which accompanies + * this distribution. If the LICENSE file was not attached to this + * distribution or for further clarifications, please contact + * le...@hi.... + * + *******************************************************************/ + +#include <memory> + +#include <asycxx/Logger.h> +#include <asycxx/Error.h> +#include <asycxx/Timer.h> +#include <asycxx/SelectReactor.h> +#include <asycxx/Protocol.h> +#include <asycxx/Factory.h> +#include <asycxx/TCPListener.h> + +Logger *Log; + +class EchoServerProtocol : public Protocol +{ +public: + EchoServerProtocol (Reactor *reactor, Factory *factory, Transport *transport) + : Protocol (reactor, factory, transport) + {} + ~EchoServerProtocol () {} + + void DataAvailable (DataBuffer *data) + { + m_Transport->Write (data); + } +}; + + +class EchoServerProtocolFactory : public Factory +{ +public: + EchoServerProtocolFactory (Reactor *reactor) : Factory (reactor) + {} + ~EchoServerProtocolFactory () {} + + EchoServerProtocol * GetProtocol (Transport *trans) + { + return new EchoServerProtocol (m_Reactor, this, trans); + } +}; + + +int +main () +{ + Reactor *reactor; + + Log = new Logger(); + Log->EnableConsole(); + + reactor = new SelectReactor (); + Timer::Init (reactor); + + EchoServerProtocolFactory echofactory (reactor); + TCPListener echolistener (reactor, &echofactory, (char *)"0.0.0.0", + 10000); + reactor->Run (); +} + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Added: trunk/examples/echoserver/Makefile.am =================================================================== --- trunk/examples/echoserver/Makefile.am (rev 0) +++ trunk/examples/echoserver/Makefile.am 2009-03-12 12:57:59 UTC (rev 14) @@ -0,0 +1,14 @@ + +noinst_PROGRAMS = EchoServer + +EchoServer_SOURCES = EchoServer.cxx +EchoServer_LDADD = $(top_srcdir)/src/libasycxx-0.1.la +EchoServer_CPPFLAGS = -I$(top_srcdir)/include +EchoServer_LDFLAGS = -L$(top_srcdir)/src + + +# Local Variables: +# mode: makefile +# indent-tabs-mode: nil +# tab-width: 4 +# End: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 12:56:47
|
Revision: 13 http://asycxx.svn.sourceforge.net/asycxx/?rev=13&view=rev Author: joe_steeve Date: 2009-03-12 12:56:40 +0000 (Thu, 12 Mar 2009) Log Message: ----------- fixed the list of installable headers * removed XMLParser.h from the installable list and added _asycxx.h From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/include/Makefile.am Modified: trunk/include/Makefile.am =================================================================== --- trunk/include/Makefile.am 2009-03-12 12:55:38 UTC (rev 12) +++ trunk/include/Makefile.am 2009-03-12 12:56:40 UTC (rev 13) @@ -19,5 +19,5 @@ asycxx/MsgBus.h \ asycxx/MsgHandler.h \ asycxx/GimpleMsgBus.h \ - asycxx/XMLParser.h \ + asycxx/_asycxx.h \ asycxx/asycxx.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 12:55:51
|
Revision: 12 http://asycxx.svn.sourceforge.net/asycxx/?rev=12&view=rev Author: joe_steeve Date: 2009-03-12 12:55:38 +0000 (Thu, 12 Mar 2009) Log Message: ----------- [ticket:4] Deferred.* is referred wrongly in the build (fixed) From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/include/asycxx/Deferred.h trunk/src/Deferred.cxx trunk/src/Makefile.am Modified: trunk/include/asycxx/Deferred.h =================================================================== --- trunk/include/asycxx/Deferred.h 2009-03-12 12:54:15 UTC (rev 11) +++ trunk/include/asycxx/Deferred.h 2009-03-12 12:55:38 UTC (rev 12) @@ -15,6 +15,7 @@ #define __HIPRO_ASYCXX__DEFERRED_H__ #include "Error.h" +#include "_asycxx.h" typedef void (*cbDeferredOnEvent_t) (void *obj); typedef void (*cbDeferredOnError_t) (void *obj); Modified: trunk/src/Deferred.cxx =================================================================== --- trunk/src/Deferred.cxx 2009-03-12 12:54:15 UTC (rev 11) +++ trunk/src/Deferred.cxx 2009-03-12 12:55:38 UTC (rev 12) @@ -19,7 +19,7 @@ #include <errno.h> #include <string.h> -#include "asycxx.h" +#include "asycxx-common.h" #include "Error.h" #include "Deferred.h" Modified: trunk/src/Makefile.am =================================================================== --- trunk/src/Makefile.am 2009-03-12 12:54:15 UTC (rev 11) +++ trunk/src/Makefile.am 2009-03-12 12:55:38 UTC (rev 12) @@ -5,7 +5,7 @@ libasycxx_0_1_la_SOURCES = \ Logger.cxx \ Error.cxx \ - Deferred.cxx.h \ + Deferred.cxx \ RefCounter.cxx \ DataBuffer.cxx \ Reactor.cxx \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 12:54:23
|
Revision: 11 http://asycxx.svn.sourceforge.net/asycxx/?rev=11&view=rev Author: joe_steeve Date: 2009-03-12 12:54:15 +0000 (Thu, 12 Mar 2009) Log Message: ----------- changed author contact address From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/configure.ac Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-03-12 10:00:34 UTC (rev 10) +++ trunk/configure.ac 2009-03-12 12:54:15 UTC (rev 11) @@ -1,4 +1,4 @@ -AC_INIT([asycxx], [0.1], jo...@hi...) +AC_INIT([asycxx], [0.1], js...@hi...) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PREFIX_DEFAULT(/opt/asycxx) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 10:01:02
|
Revision: 10 http://asycxx.svn.sourceforge.net/asycxx/?rev=10&view=rev Author: joe_steeve Date: 2009-03-12 10:00:34 +0000 (Thu, 12 Mar 2009) Log Message: ----------- removed 'hdb-tinyxml' * hdb-tinyxml is not needed anymore. XMLParser.* is not in the scope of asycxx. Removed Paths: ------------- hdb-tinyxml/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 09:45:27
|
Revision: 9 http://asycxx.svn.sourceforge.net/asycxx/?rev=9&view=rev Author: joe_steeve Date: 2009-03-12 09:45:10 +0000 (Thu, 12 Mar 2009) Log Message: ----------- removed XMLParser.* this is not relevant to asycxx * removed references of XMLParser.* from the build system * removed the dependance on hdb-tinyxml * added a .gitignore to ignore un-necessary stuff From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/configure.ac trunk/src/Makefile.am Added Paths: ----------- trunk/.gitignore Removed Paths: ------------- trunk/include/asycxx/XMLParser.h trunk/src/XMLParser.cxx Added: trunk/.gitignore =================================================================== --- trunk/.gitignore (rev 0) +++ trunk/.gitignore 2009-03-12 09:45:10 UTC (rev 9) @@ -0,0 +1,39 @@ +*~ +*.o +Makefile +Makefile.in +*.lo +stamp-h1 +aclocal.m4 +config.* +.deps +.libs +missing +ltmain.sh +install-sh +libtool +autom4te.cache +*.pc +asycxx-config.h +configure +depcomp +*.la +src/DataBuffer.h +src/Deferred.h +src/Error.h +src/Factory.h +src/GimpleMsgBus.h +src/Listener.h +src/Logger.h +src/MsgBus.h +src/MsgHandler.h +src/Protocol.h +src/Reactor.h +src/RefCounter.h +src/SelectReactor.h +src/TCPLLTransport.h +src/TCPListener.h +src/TCPTransport.h +src/Timer.h +src/Transport.h +src/_asycxx.h Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-03-12 09:42:31 UTC (rev 8) +++ trunk/configure.ac 2009-03-12 09:45:10 UTC (rev 9) @@ -6,10 +6,10 @@ CFLAGS="-Wall -Werror" CXXFLAGS="-Wall -Werror" -dnl setup the debug level +dnl setup the verbosity level AC_ARG_WITH(verbose-level, AS_HELP_STRING([--with-verbose-level], - [Use the given debug level (0 to 3) 0=disable]), + [Use the given verbosity level (0 to 3) 0=disable]), [asycxx_with_verbose_level=$withval],) if test $asycxx_with_verbose_level; then @@ -55,11 +55,6 @@ AC_DEFINE_UNQUOTED(ENABLE_SANITY_CHECKS, $ASYCXX_sanity_checks, [Enable/Disable sanity checks]) -dnl check for libhdb-tinyxml -PKG_CHECK_MODULES(HDB_TINYXML, hdb-tinyxml-1.0) -AC_SUBST(HDB_TINYXML_CFLAGS) -AC_SUBST(HDB_TINYXML_LIBS) - AC_SUBST(CFLAGS) AC_SUBST(CXXFLAGS) @@ -93,6 +88,5 @@ src/MsgBus.h:include/asycxx/MsgBus.h src/MsgHandler.h:include/asycxx/MsgHandler.h src/GimpleMsgBus.h:include/asycxx/GimpleMsgBus.h - src/XMLParser.h:include/asycxx/XMLParser.h src/_asycxx.h:include/asycxx/_asycxx.h) AC_OUTPUT Deleted: trunk/include/asycxx/XMLParser.h =================================================================== --- trunk/include/asycxx/XMLParser.h 2009-03-12 09:42:31 UTC (rev 8) +++ trunk/include/asycxx/XMLParser.h 2009-03-12 09:45:10 UTC (rev 9) @@ -1,54 +0,0 @@ - -/******************************************************************** - * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All - * rights reserved. - * - * This program and the accompanying materials are made available - * under the terms described in the LICENSE file which accompanies - * this distribution. If the LICENSE file was not attached to this - * distribution or for further clarifications, please contact - * le...@hi... - * - *******************************************************************/ - -#ifndef __HIPRO_ACW__XML_PARSER_H__ -#define __HIPRO_ACW__XML_PARSER_H__ - -#include <vector> -#include <hdb-tinyxml/tinyxml.h> - -#include "_asycxx.h" - -class XMLParser -{ -public: - XMLParser (const char *file_name); - ~XMLParser (); - - Result GetValue (const char *xpath, const char **value); - Result GetValue (const char *xpath, int *value); - -protected: - char m_FileName[HMI_CTRL_MAX_URL_LEN]; - TiXmlDocument *m_txDoc; - -private: - - Result ParseXPath (const char *xpath); - - /* used by the xpath parser */ - char m_XPath[HMI_CTRL_MAX_XPATH_LEN]; - std::vector<char *> m_XPathComponents; - -}; - -#endif /* __HIPRO_ACW__XML_PARSER_H__ */ - -/* - Local Variables: - mode: c++ - indent-tabs-mode: nil - tab-width: 4 - c-file-style: "gnu" - End: -*/ Modified: trunk/src/Makefile.am =================================================================== --- trunk/src/Makefile.am 2009-03-12 09:42:31 UTC (rev 8) +++ trunk/src/Makefile.am 2009-03-12 09:45:10 UTC (rev 9) @@ -21,8 +21,7 @@ MsgBus.cxx \ MsgHandler.cxx \ GimpleMsgBus.cxx \ - XMLParser.cxx \ core.cxx -libasycxx_0_1_la_CXXFLAGS = -O2 $(HDB_TINYXML_CFLAGS) +libasycxx_0_1_la_CXXFLAGS = -O2 libasycxx_0_1_la_LDFLAGS = -version-info 0:1:0 Deleted: trunk/src/XMLParser.cxx =================================================================== --- trunk/src/XMLParser.cxx 2009-03-12 09:42:31 UTC (rev 8) +++ trunk/src/XMLParser.cxx 2009-03-12 09:45:10 UTC (rev 9) @@ -1,296 +0,0 @@ - -/******************************************************************** - * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All - * rights reserved. - * - * This program and the accompanying materials are made available - * under the terms described in the LICENSE file which accompanies - * this distribution. If the LICENSE file was not attached to this - * distribution or for further clarifications, please contact - * le...@hi... - * - *******************************************************************/ - -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - -#include <stdio.h> -#include <stdlib.h> -#include <errno.h> - -#include "asycxx-common.h" -#include "XMLParser.h" -#include "Error.h" - -#include <hdb-tinyxml/tinyxml.h> - -/** - * \class XMLParser - * - * \details The xpath used here is not the standard xpath defined by - * the W3C but a smaller subset of it. It does not have all query - * features contained in the standard XPath. - * - * The XPath is the denotation of a node in an XML file in the form of - * a file-system path. In the following, XML file: - * - * <pre> - * - * \<config\> - * \<name\>Joe\</name\> - * \</config\> - * - * </pre> - * - * The node named 'name' can be referred to using the string - * "/config/name". The W3C standard XPath notation has more complex - */ - -XMLParser::XMLParser (const char *file_name) -{ - ASSERT ((file_name != NULL), "bad parameters"); - ASSERT ((strnlen (file_name, HMI_CTRL_MAX_URL_LEN) < HMI_CTRL_MAX_URL_LEN), - "bad parameters"); - - m_txDoc = NULL; - memset (m_FileName, 0, sizeof(m_FileName)); - memset (m_XPath, 0, sizeof(m_XPath)); - - strncpy (m_FileName, file_name, HMI_CTRL_MAX_URL_LEN); - m_txDoc = new TiXmlDocument (m_FileName); - if (m_txDoc->LoadFile() == false) - { - THROW (RunTimeError, "failed to load (parse) XML file=%s", m_FileName); - } -} - - -XMLParser::~XMLParser () -{ - if (m_txDoc != NULL) - { - delete m_txDoc; - } -} - - -/** - * \brief Get the string value pointed by the x-path - * - * \param[in] XPath A string containing the path to the node - * \param[out] value A pointer to a string pointer to take a pointer - * to the string value in the node. - * - * \details This method gets the value contained in the node pointed to - * by the 'xpath' string. On success, value should point to a const - * string which contains the value. - */ -Result -XMLParser::GetValue (const char *xpath, const char **value) -{ - Result ret; - - ASSERT ((xpath != NULL), "bad parameters"); - ASSERT ((value != NULL), "bad parameters"); - - *value = NULL; - if (strnlen (xpath, HMI_CTRL_MAX_XPATH_LEN) == HMI_CTRL_MAX_XPATH_LEN) - { - ERR ("XPath string is too long (max=%d bytes)", HMI_CTRL_MAX_XPATH_LEN); - return Result_Error; - } - - ret = ParseXPath (xpath); - if (ret != Result_Success) - { - ERR ("bad xpath. cannot fetch value"); - return Result_Error; - } - - /* loop through the children and obtain the node pointed to by the - xpath */ - TiXmlNode *pChild, *pParent; - pParent = m_txDoc; - bool bFound; - unsigned int i; - const char *strValue; - - for (i=0; i<m_XPathComponents.size(); i++) - { - pChild = pParent->FirstChild(m_XPathComponents[i]); - if (pChild == NULL) - { - ERR ("node=%s does not have a child=%s. bad xpath=%s", - pParent->Value(), m_XPathComponents[i], m_XPath); - return Result_Error; - } - pParent = pChild; - } - - /* If everything went well, then the child of this node should have - the requested value */ - bFound = false; - for (pChild = pParent->FirstChild(); pChild != NULL; - pChild = pChild->NextSibling()) - { - if (pChild->Type() == TiXmlNode::TEXT) - { - strValue = pChild->Value(); - if (strValue != NULL) - { - bFound = true; - break; - } - else - { - LOG3 ("TiXMLNode->Value() returned NULL"); - } - } - } - if (bFound == false) - { - ERR ("xpath=%s does not contain any 'text' value", m_XPath); - return Result_Error; - } - - /* Found the value */ - *value = strValue; - return Result_Success; -} - - -/** - * \brief Get the int value pointed by the x-path - * - * \param[in] XPath A string containing the path to the node - * \param[out] value A pointer to an integer to take the integer value - * in the node. - * - * \details This method gets the value contained in the node pointed to - * by the 'xpath' string and stores it into 'value'. - */ -Result -XMLParser::GetValue (const char *xpath, int *value) -{ - Result ret; - const char *strValue; - int intValue; - - ASSERT ((xpath != NULL), "bad parameters"); - ASSERT ((value != NULL), "bad parameters"); - - *value = 0; - - ret = GetValue (xpath, &strValue); - if (ret != Result_Success) - { - ERR ("failed to retrieve value from given xpath"); - return Result_Error; - } -#ifdef ENABLE_SANITY_CHECKS - if (strValue == NULL) - { - ERR ("a successfull GetValue gave NULL value"); - return Result_Error; - } -#endif - - intValue = atoi (strValue); - *value = intValue; - - return Result_Success; -} - - -/** - * \brief Break a xpath string into individual components - * - * \param[in] xpath A string containing the x-path to be broken down. - * - * \details This method breaks an xpath of the form '/doc/node1/node' - * into a vector of node-names arranged in the same order. - */ -Result -XMLParser::ParseXPath (const char *xpath) -{ - ASSERT ((xpath != NULL), "bad parameters"); - ASSERT ((strnlen (xpath, HMI_CTRL_MAX_XPATH_LEN) < HMI_CTRL_MAX_XPATH_LEN), - "xpath string is too long (max=%d bytes)", HMI_CTRL_MAX_XPATH_LEN); - - /* a clean start */ - memset (m_XPath, 0, sizeof(m_XPath)); - m_XPathComponents.clear(); - - if (xpath[0] != '/') - { - ERR ("xpath=%s is not absolute. should start with /", xpath); - return Result_Error; - } - - /* Break the 'xpath' string into seperate components. */ - char *tmpStr; bool foundStr; - unsigned int i; - - strncpy (m_XPath, xpath, HMI_CTRL_MAX_XPATH_LEN); - foundStr = false; - tmpStr = NULL; - for (i=0; i<HMI_CTRL_MAX_XPATH_LEN; i++) - { - if (m_XPath[i] == '\0') - { - /* We reached end of string. If we have a valid component in - the tmpStr, then we should save it before breaking out of - here */ - if (foundStr == true) - { - m_XPathComponents.push_back (tmpStr); - } - break; - } - - if (m_XPath[i] == '/') - { - /* We found a delimiter. */ - if (foundStr == true) - { - /* Looks like we already found a component. Then this is - the end of that component. We should save the - component and mark this location with a \0. */ - m_XPath[i] = '\0'; - m_XPathComponents.push_back (tmpStr); - foundStr = false; - } - /* If we did not find a valid component string before - finding this delimiter, then it is just consequtive - delimiters. We'll ignore them. */ - } - else - { - /* we found a normal character */ - if (foundStr == false) - { - /* Start of a valid component string */ - tmpStr = &m_XPath[i]; - foundStr = true; - } - } - } - - if (m_XPathComponents.empty() == true) - { - ERR ("no valid path components in xpath=%s", xpath); - return Result_Error; - } - - return Result_Success; -} - -/* - Local Variables: - mode: c++ - indent-tabs-mode: nil - tab-width: 4 - c-file-style: "gnu" - End: -*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 09:42:38
|
Revision: 8 http://asycxx.svn.sourceforge.net/asycxx/?rev=8&view=rev Author: joe_steeve Date: 2009-03-12 09:42:31 +0000 (Thu, 12 Mar 2009) Log Message: ----------- fixed wrapping macros in header From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/include/asycxx/Error.h trunk/include/asycxx/Logger.h trunk/include/asycxx/XMLParser.h trunk/include/asycxx/_asycxx.h trunk/include/asycxx/asycxx.h Modified: trunk/include/asycxx/Error.h =================================================================== --- trunk/include/asycxx/Error.h 2009-03-12 09:40:41 UTC (rev 7) +++ trunk/include/asycxx/Error.h 2009-03-12 09:42:31 UTC (rev 8) @@ -11,8 +11,8 @@ * *******************************************************************/ -#ifndef __HIPRO__ERROR_H__ -#define __HIPRO__ERROR_H__ +#ifndef __HIPRO_ASYCXX__ERROR_H__ +#define __HIPRO_ASYCXX__ERROR_H__ #ifdef HAVE_CONFIG_H #include <asycxx-config.h> Modified: trunk/include/asycxx/Logger.h =================================================================== --- trunk/include/asycxx/Logger.h 2009-03-12 09:40:41 UTC (rev 7) +++ trunk/include/asycxx/Logger.h 2009-03-12 09:42:31 UTC (rev 8) @@ -11,8 +11,8 @@ * *******************************************************************/ -#ifndef __HIPRO__LOGGER_H__ -#define __HIPRO__LOGGER_H__ +#ifndef __HIPRO_ASYCXX__LOGGER_H__ +#define __HIPRO_ASYCXX__LOGGER_H__ #include <stdarg.h> @@ -34,7 +34,7 @@ // void LogToFile (const char *fmt, va_list args); }; -#endif // __HIPRO__LOGGER_H__ +#endif // __HIPRO_ASYCXX__LOGGER_H__ /* Local Variables: Modified: trunk/include/asycxx/XMLParser.h =================================================================== --- trunk/include/asycxx/XMLParser.h 2009-03-12 09:40:41 UTC (rev 7) +++ trunk/include/asycxx/XMLParser.h 2009-03-12 09:42:31 UTC (rev 8) @@ -42,7 +42,7 @@ }; -#endif /* __ACW__XML_PARSER_H__ */ +#endif /* __HIPRO_ACW__XML_PARSER_H__ */ /* Local Variables: Modified: trunk/include/asycxx/_asycxx.h =================================================================== --- trunk/include/asycxx/_asycxx.h 2009-03-12 09:40:41 UTC (rev 7) +++ trunk/include/asycxx/_asycxx.h 2009-03-12 09:42:31 UTC (rev 8) @@ -11,8 +11,8 @@ * *******************************************************************/ -#ifndef __HIPRO_ACW___ASYCXX_H__ -#define __HIPRO_ACW___ASYCXX_H__ +#ifndef __HIPRO_ASYCXX___ASYCXX_H__ +#define __HIPRO_ASYCXX___ASYCXX_H__ enum Result { @@ -26,7 +26,7 @@ typedef long long h_msecs_t; typedef long long h_timestamp_t; -#endif /* __HIPRO_ACW___ASYCXX_H__ */ +#endif /* __HIPRO_ASYCXX___ASYCXX_H__ */ /* Local Variables: Modified: trunk/include/asycxx/asycxx.h =================================================================== --- trunk/include/asycxx/asycxx.h 2009-03-12 09:40:41 UTC (rev 7) +++ trunk/include/asycxx/asycxx.h 2009-03-12 09:42:31 UTC (rev 8) @@ -16,7 +16,7 @@ #include "_asycxx.h" -#endif /* __HIPRO_ACW__XML_PARSER_H__ */ +#endif /* __HIPRO_ACW__ASYCXX_H__ */ /* Local Variables: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joe...@us...> - 2009-03-12 09:40:49
|
Revision: 7 http://asycxx.svn.sourceforge.net/asycxx/?rev=7&view=rev Author: joe_steeve Date: 2009-03-12 09:40:41 +0000 (Thu, 12 Mar 2009) Log Message: ----------- converted Emacs modeline variables to Emacs file local variables From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/include/asycxx/DataBuffer.h trunk/include/asycxx/Deferred.h trunk/include/asycxx/Error.h trunk/include/asycxx/Factory.h trunk/include/asycxx/GimpleMsgBus.h trunk/include/asycxx/Listener.h trunk/include/asycxx/Logger.h trunk/include/asycxx/MsgBus.h trunk/include/asycxx/MsgHandler.h trunk/include/asycxx/Protocol.h trunk/include/asycxx/Reactor.h trunk/include/asycxx/RefCounter.h trunk/include/asycxx/SelectReactor.h trunk/include/asycxx/TCPLLTransport.h trunk/include/asycxx/TCPListener.h trunk/include/asycxx/TCPTransport.h trunk/include/asycxx/Timer.h trunk/include/asycxx/Transport.h trunk/include/asycxx/XMLParser.h trunk/src/DataBuffer.cxx trunk/src/Deferred.cxx trunk/src/Error.cxx trunk/src/Factory.cxx trunk/src/GimpleMsgBus.cxx trunk/src/Listener.cxx trunk/src/Logger.cxx trunk/src/MsgHandler.cxx trunk/src/Protocol.cxx trunk/src/Reactor.cxx trunk/src/RefCounter.cxx trunk/src/SelectReactor.cxx trunk/src/TCPLLTransport.cxx trunk/src/TCPListener.cxx trunk/src/TCPTransport.cxx trunk/src/Timer.cxx trunk/src/Transport.cxx trunk/src/XMLParser.cxx trunk/src/core.cxx Modified: trunk/include/asycxx/DataBuffer.h =================================================================== --- trunk/include/asycxx/DataBuffer.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/DataBuffer.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -58,3 +57,12 @@ }; #endif /* __HIPRO_ASYCXX__DATA_BUFFER_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Deferred.h =================================================================== --- trunk/include/asycxx/Deferred.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Deferred.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -49,3 +48,12 @@ }; #endif // __HIPRO_ASYCXX__DEFERRED_H__ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Error.h =================================================================== --- trunk/include/asycxx/Error.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Error.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -67,4 +66,14 @@ CREATE_ERROR (RecoverableError, Error, "unknown RecoverableError"); CREATE_ERROR (BadFDError, RecoverableError, "BadFDError"); + #endif /* __HIPRO_ASYCXX__ERROR_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Factory.h =================================================================== --- trunk/include/asycxx/Factory.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Factory.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -35,3 +34,12 @@ }; #endif /* __HIPRO_ASYCXX__FACTORY_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/GimpleMsgBus.h =================================================================== --- trunk/include/asycxx/GimpleMsgBus.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/GimpleMsgBus.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,3 +1,4 @@ + /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All * rights reserved. Modified: trunk/include/asycxx/Listener.h =================================================================== --- trunk/include/asycxx/Listener.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Listener.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -32,3 +31,12 @@ }; #endif /* __HIPRO_ASYCXX__LISTENER_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Logger.h =================================================================== --- trunk/include/asycxx/Logger.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Logger.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -36,3 +35,12 @@ }; #endif // __HIPRO__LOGGER_H__ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/MsgBus.h =================================================================== --- trunk/include/asycxx/MsgBus.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/MsgBus.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,3 +1,4 @@ + /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All * rights reserved. Modified: trunk/include/asycxx/MsgHandler.h =================================================================== --- trunk/include/asycxx/MsgHandler.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/MsgHandler.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,3 +1,4 @@ + /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All * rights reserved. Modified: trunk/include/asycxx/Protocol.h =================================================================== --- trunk/include/asycxx/Protocol.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Protocol.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -54,3 +53,12 @@ }; #endif /* __HIPRO_ASYCXX__PROTOCOL_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Reactor.h =================================================================== --- trunk/include/asycxx/Reactor.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Reactor.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -87,3 +86,12 @@ }; #endif /* __HIPRO_ASYCXX__REACTOR_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/RefCounter.h =================================================================== --- trunk/include/asycxx/RefCounter.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/RefCounter.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -35,3 +34,12 @@ }; #endif /* __HIPRO_ASYCXX__REF_COUNTER_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/SelectReactor.h =================================================================== --- trunk/include/asycxx/SelectReactor.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/SelectReactor.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -48,3 +47,12 @@ }; #endif /* __HIPRO_ASYCXX__SELECT_REACTOR_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/TCPLLTransport.h =================================================================== --- trunk/include/asycxx/TCPLLTransport.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/TCPLLTransport.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -34,3 +33,12 @@ }; #endif /* __HIPRO_ASYCXX__TCP_LL_TRANSPORT_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/TCPListener.h =================================================================== --- trunk/include/asycxx/TCPListener.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/TCPListener.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -56,3 +55,12 @@ }; #endif /* __HIPRO_ASYCXX__TCP_LISTENER_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/TCPTransport.h =================================================================== --- trunk/include/asycxx/TCPTransport.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/TCPTransport.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C), 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -38,3 +37,12 @@ }; #endif /* __HIPRO_ASYCXX__TCP_TRANSPORT_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Timer.h =================================================================== --- trunk/include/asycxx/Timer.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Timer.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -84,3 +83,12 @@ #endif /* __HIPRO_ASYCXX__TIMER_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/Transport.h =================================================================== --- trunk/include/asycxx/Transport.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/Transport.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -79,3 +78,12 @@ }; #endif /* __HIPRO_ASYCXX__TRANSPORT_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/include/asycxx/XMLParser.h =================================================================== --- trunk/include/asycxx/XMLParser.h 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/include/asycxx/XMLParser.h 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -44,3 +43,12 @@ }; #endif /* __ACW__XML_PARSER_H__ */ + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/DataBuffer.cxx =================================================================== --- trunk/src/DataBuffer.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/DataBuffer.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -144,3 +143,12 @@ ptr = (void *)((unsigned int)m_Data + m_ProcessedLen); return ptr; } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Deferred.cxx =================================================================== --- trunk/src/Deferred.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Deferred.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -145,3 +144,12 @@ m_cbOnTimeout (m_cbOnTimeout_obj, excess_time); } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Error.cxx =================================================================== --- trunk/src/Error.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Error.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -55,3 +54,12 @@ ("\n ----------------------------------------------------------------\n"); free (stsyms); } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Factory.cxx =================================================================== --- trunk/src/Factory.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Factory.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -42,3 +41,12 @@ Factory::~Factory () { } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/GimpleMsgBus.cxx =================================================================== --- trunk/src/GimpleMsgBus.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/GimpleMsgBus.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,3 +1,4 @@ + /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All * rights reserved. Modified: trunk/src/Listener.cxx =================================================================== --- trunk/src/Listener.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Listener.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -31,3 +30,12 @@ { } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Logger.cxx =================================================================== --- trunk/src/Logger.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Logger.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -84,3 +83,12 @@ vfprintf (stderr, fmt, args); } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/MsgHandler.cxx =================================================================== --- trunk/src/MsgHandler.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/MsgHandler.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,3 +1,4 @@ + /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All * rights reserved. Modified: trunk/src/Protocol.cxx =================================================================== --- trunk/src/Protocol.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Protocol.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -100,3 +99,12 @@ { LOG3 ("write caused error out but not handled. lame protocol"); } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Reactor.cxx =================================================================== --- trunk/src/Reactor.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Reactor.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -553,3 +552,12 @@ } } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/RefCounter.cxx =================================================================== --- trunk/src/RefCounter.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/RefCounter.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -60,3 +59,12 @@ delete this; } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/SelectReactor.cxx =================================================================== --- trunk/src/SelectReactor.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/SelectReactor.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -176,3 +175,12 @@ } } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/TCPLLTransport.cxx =================================================================== --- trunk/src/TCPLLTransport.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/TCPLLTransport.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -147,3 +146,12 @@ } } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/TCPListener.cxx =================================================================== --- trunk/src/TCPListener.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/TCPListener.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -243,3 +242,12 @@ { m_bSetupNoDelay = true; } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/TCPTransport.cxx =================================================================== --- trunk/src/TCPTransport.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/TCPTransport.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -162,3 +161,12 @@ // /** \todo using setsockopt should configure TCP_KEEPINTVL */ // } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Timer.cxx =================================================================== --- trunk/src/Timer.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Timer.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -265,3 +264,12 @@ UnRegisterTimer (this); } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/Transport.cxx =================================================================== --- trunk/src/Transport.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/Transport.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -349,3 +348,12 @@ /* notify write-timeout to the protocol */ trans->m_Protocol->WriteTimeout (excess_time); } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/XMLParser.cxx =================================================================== --- trunk/src/XMLParser.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/XMLParser.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -286,3 +285,12 @@ return Result_Success; } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ Modified: trunk/src/core.cxx =================================================================== --- trunk/src/core.cxx 2009-03-12 09:35:26 UTC (rev 6) +++ trunk/src/core.cxx 2009-03-12 09:40:41 UTC (rev 7) @@ -1,4 +1,3 @@ -/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 4; -*- */ /******************************************************************** * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All @@ -68,3 +67,12 @@ } } } + +/* + Local Variables: + mode: c++ + indent-tabs-mode: nil + tab-width: 4 + c-file-style: "gnu" + End: +*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |