From d0b20af9e6e4a994dcf51454d0a905fd1c30bb01 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Sun, 28 Jan 1996 01:58:35 +0000 Subject: [PATCH] New file. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@879 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/base/Archiver.h | 42 +++++++++++++++++++++++++++++++++ Source/Archiver.m | 37 +++++++++++++++++++++++++++++ Source/objects/Archiver.h | 42 +++++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 Headers/gnustep/base/Archiver.h create mode 100644 Source/Archiver.m create mode 100644 Source/objects/Archiver.h diff --git a/Headers/gnustep/base/Archiver.h b/Headers/gnustep/base/Archiver.h new file mode 100644 index 000000000..2e14d0de4 --- /dev/null +++ b/Headers/gnustep/base/Archiver.h @@ -0,0 +1,42 @@ +/* Interface for GNU Objective-C Archiver object for use serializing + Copyright (C) 1996 Free Software Foundation, Inc. + + Written by: R. Andrew McCallum + Created: January 1996 + + This file is part of the GNU Objective C Class Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef __Archiver_h_OBJECTS_INCLUDE +#define __Archiver_h_OBJECTS_INCLUDE + +#include +#include + +/* Eventually some functionality may be moved out of Coder and + into these objects. + + These class should be used as concrete classes, not the Coder class. */ + + +@interface Archiver : Coder +@end + +@interface Unarchiver : Coder +@end + +#endif /* __Archiver_h_OBJECTS_INCLUDE */ diff --git a/Source/Archiver.m b/Source/Archiver.m new file mode 100644 index 000000000..70d74685c --- /dev/null +++ b/Source/Archiver.m @@ -0,0 +1,37 @@ +/* Implementation of GNU Objective-C class for writing objects to files + Copyright (C) 1996 Free Software Foundation, Inc. + + Written by: R. Andrew McCallum + Created: January 1996 + + This file is part of the GNU Objective C Class Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#include +#include +#include + +/* Eventually some functionality may be moved out of Coder and + into these objects. + + These class should be used as concrete classes, not the Coder class. */ + +@implementation Archiver +@end + +@implementation Unarchiver +@end diff --git a/Source/objects/Archiver.h b/Source/objects/Archiver.h new file mode 100644 index 000000000..2e14d0de4 --- /dev/null +++ b/Source/objects/Archiver.h @@ -0,0 +1,42 @@ +/* Interface for GNU Objective-C Archiver object for use serializing + Copyright (C) 1996 Free Software Foundation, Inc. + + Written by: R. Andrew McCallum + Created: January 1996 + + This file is part of the GNU Objective C Class Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef __Archiver_h_OBJECTS_INCLUDE +#define __Archiver_h_OBJECTS_INCLUDE + +#include +#include + +/* Eventually some functionality may be moved out of Coder and + into these objects. + + These class should be used as concrete classes, not the Coder class. */ + + +@interface Archiver : Coder +@end + +@interface Unarchiver : Coder +@end + +#endif /* __Archiver_h_OBJECTS_INCLUDE */