// Swarm library. Copyright © 1996-2000 Swarm Development Group.
// This library is distributed without any warranty; without even the
// implied warranty of merchantability or fitness for a particular purpose.
// See file LICENSE for details and terms of copying.

#import <simtools.h> // ObjectSaver
#import <objectbase/SwarmObject.h>
#import <objectbase.h> // ProbeMap

@interface ObjectSaver: SwarmObject <ObjectSaver>
{
  id <ProbeMap> templateProbeMap;  
  id theFileObject;    
}

+ save: anObject to: aFileObject;
+ save: anObject to: aFileObject withTemplate: (id <ProbeMap>)aProbeMap;
+ save: anObject toFileNamed: (const char *)aFileName;
+ save: anObject toFileNamed: (const char *)aFileName withTemplate: (id <ProbeMap>)aProbeMap;

- setFileObject: aFileObject;
- setTemplateProbeMap: (id <ProbeMap>)aProbeMap;
- saveObject: anObject;

- (void)_crash_: anObject;

@end

