[zeromq-dev] Code organization

gonzalo diethelm gdiethelm at dcv.cl
Mon Feb 15 22:32:07 CET 2010

I saw a couple of ugly includes like these in zmq_streamer.cpp:

  #include "../../bindings/cpp/zmq.hpp"
  #include "../../foreign/xmlParser/xmlParser.cpp"

I would like to suggest adding an "include namespace" so that file
inclusion in zmq can be done like this:

  #include <zmq/zmq.h>
  #include <zmq/zmq.hpp>

That means under Unix you would have these files under /usr/include/zmq,
which I think provides a nice level of isolation. You could even have
subdirectories in there:

#include <zmq/cpp/zmq.hpp> // C++ binding ==>

This way, the distribution tarball could have the include files under a
single zmq directory, and one could compile directly against an
uninstalled tarball (using appropriate -I flags) or against an installed

A question: is anybody working on porting zmq to cygwin?

Gonzalo Diethelm

Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
individuals or entities that it is addressed to and may include
private and confidential information that may not be disclosed,
made public nor used in any way at all. Unauthorized use of the
information in this electronic mail message may be subject to the
penalties set forth by Chilean law. 
If you have received this electronic mail message in error, we ask
you to destroy the message and its attached file(s) and to
immediately notify the sender by answering this message. 

More information about the zeromq-dev mailing list