From 2913e17def90109ac83922e55a9df8999844ec58 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Jul 2007 00:55:31 +0000 Subject: Since libbu++-reorg is now the trunk, build has been updated to work with it. --- src/build.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/build.cpp') diff --git a/src/build.cpp b/src/build.cpp index 113f61f..c92d804 100644 --- a/src/build.cpp +++ b/src/build.cpp @@ -1,7 +1,8 @@ #include "build.h" #include "function.h" #include "viewerfactory.h" -#include "serializerbinary.h" +#include "bu/archive.h" +#include "bu/file.h" subExceptionDef( BuildException ); @@ -18,11 +19,12 @@ Build::~Build() { try { - SerializerBinary ar( sCacheName.c_str(), Serializer::save ); + Bu::File f( sCacheName.c_str(), "wb" ); + Bu::Archive ar( f, Bu::Archive::save ); ar << cRequires; } - catch( ExceptionBase &e ) + catch( Bu::ExceptionBase &e ) { } } @@ -39,11 +41,12 @@ void Build::setCache( const std::string &sFileName ) try { - SerializerBinary ar( sCacheName.c_str(), Serializer::load ); + Bu::File f( sCacheName.c_str(), "rb" ); + Bu::Archive ar( f, Bu::Archive::load ); ar >> cRequires; } - catch( ExceptionBase &e ) + catch( Bu::ExceptionBase &e ) { } } -- cgit v1.2.3