Main Page | Class List | File List | Class Members | File Members

View Library

SourceForge.net Logo

Author:
Ian Searle, ians@users.sourceforge.net

Introduction

The goal of the view library is to provide a memory allocation efficient set of operations for dealing with string operations such as appending, inserting, copying, etcetera. The efficiencies are achieved by allowing the programmer to construct "views" from string segments. Regardless of how many times a segment is referenced or used, it is never copied.

Some key features:

Building

The view library has been written with portability in mind. But, it has been developed and tested on a single platform (Mac OS-X). To build the library look at the Makefile in the root directory. There are a few macros at the top that will probably need to be customized. If you are a developer, then customizing the Makefiles should be a fairly trivial task.

Within the root directory is a test directory. I recommend that you get the test programs to build and execute in order to verify proper functionality on your platform.

In a perfect world, you would unpack the tar-ball, and do:

make make test > test.out diff -c ./test.out ./test.out.golden

If there are minimal differences (addresses are bound to be different) then the library is probably good to go. Simply copy the library and view.h to a convenient location and start using them.

Implementation

Copyright

Copyright 2003, 2004 Ian Searle. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2: Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL IAN SEARLE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Generated on Wed Feb 25 23:01:09 2004 by doxygen 1.3.4