Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   New version of C++ Middleware Writer now on line (http://www.velocityreviews.com/forums/t684053-new-version-of-c-middleware-writer-now-on-line.html)

woodbrian77@gmail.com 05-14-2009 06:28 PM

New version of C++ Middleware Writer now on line
 
Shalom

Version 1.9 of the C++ Middleware Writer is now available. This
version
adds support for Boost Array and it also has a command line interface
that allows users to bypass the web interface. In other words, it
makes
it easy to integrate the C++ Middleware Writer into your build
process.
http://webEbenezer.net/build_integration.html

--
Brian Wood
Ebenezer Enterprises
http://www.webEbenezer.net


coal@mailvault.com 05-20-2009 06:02 PM

Re: New version of C++ Middleware Writer now on line
 
On May 14, 1:28*pm, woodbria...@gmail.com wrote:
> Shalom
>
> Version 1.9 of the C++MiddlewareWriter is now available. *This
> version
> adds support forBoost Arrayand it also has a command line interface
> that allows users to bypass the web interface. *In other words, it
> makes
> it easy to integrate the C++MiddlewareWriter into your build
> process.http://webEbenezer.net/build_integration.html
>



One thing about the command line interface that is kind
of interesting is that is uses bzip2 to compress files
before transmitting them. I came across a kind of
unusual situation when working on this part of the
program. The program first calculates the number of
bytes in a message. There's no way to figure out
how many bytes a file will be when its compressed
without actually compressing it. But I wasn't ready to
marshall the compressed data at that point -- I'm
still counting how many bytes are in the message.
So I decided to store the compressed data in a deque
for later use. This means the CalculateMarshallingSize
function has a side effect that is later used by the Send
function. One alternative would be to do the compression
twice, but that didn't seem like the right answer so I
took the aforementioned approach. The code is mostly
here -- http://webEbenezer.net/misc/File.cc.


--
Brian Wood
Ebenezer Enterprises
http://www.webEbenezer.net



All times are GMT. The time now is 06:37 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.