From 597a1487c716b799428f4b4a4903e65df4c93ba9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 15 Sep 2008 20:03:56 +0000 Subject: Whoa! Loads of NIDS work. It actually compiles, runs, and I'm optimizing the hell out of it. Good times, everyone. This is a major chunk for congo, and the new optimizations should be good. --- src/tests/hash.cpp | 2 +- src/tests/nids.cpp | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/tests/nids.cpp (limited to 'src/tests') diff --git a/src/tests/hash.cpp b/src/tests/hash.cpp index 76cf0ec..9cc45f5 100644 --- a/src/tests/hash.cpp +++ b/src/tests/hash.cpp @@ -25,7 +25,7 @@ int main() for( int j = 0; j < 10; j++ ) { - printf("%d\n", lb[j].value()->nID ); + printf("%d\n", lb[j].getValue()->nID ); } } diff --git a/src/tests/nids.cpp b/src/tests/nids.cpp new file mode 100644 index 0000000..1197ac1 --- /dev/null +++ b/src/tests/nids.cpp @@ -0,0 +1,19 @@ +#include "bu/file.h" +#include "bu/nids.h" + +int main( int argc, char *argv[] ) +{ + if( argc < 2 ) + { + printf("usage: %s \n\n", argv[0] ); + return 1; + } + + Bu::File fOut( argv[1], "wb"); + Bu::Nids n( fOut ); + + n.initialize( 1024, 5 ); + + Bu::NidsStream s = n.openStream( n.createStream() ); +} + -- cgit v1.2.3