Polaris: Format.cc Source File

Format.cc

Go to the documentation of this file.
00001 ///
00002 ///
00003 /// \file Format.cc
00004 ///
00005 #ifdef POLARIS_GNU_PRAGMAS
00006 #pragma implementation
00007 #endif
00008 ///
00009 #include "Format.h"
00010 #include "Collection/Database.h"
00011 #include "Collection/KeyIterator.h"
00012 #include "Collection/RefMap.h"
00013 
00014 template class TypedBaseMap<int,Format>;
00015 template class ProtoDatabase<int,Format>;
00016 template class Database<int,Format>;
00017 template ostream & operator << (ostream &, const Database<int,Format> &);
00018 template class KeyIterator<int,Format>;
00019 
00020 template class TypedBaseRefMap<Format,Format>;
00021 template class ProtoRefMap<Format,Format>;
00022 template class RefMap<Format,Format>;
00023 template ostream & operator << (ostream &, RefMap<Format,Format> const &);
00024 template class KeyIterator<Format,Format>;
00025 
00026 Format::~Format()
00027 {
00028     #ifdef CLASS_INSTANCE_REGISTRY
00029     unregister_instance(FORMAT, this);
00030     #endif
00031 }
00032 
00033 Listable *Format::listable_clone() const
00034 {
00035   return new Format(*this);
00036 }
00037 
00038 void Format::print(ostream &o) const
00039 {
00040   o << "[Format \"" << _value << "\": \"" << _format << "\"]";
00041 }
00042 
00043 int Format::structures_OK() const
00044 {
00045   if ( ! _format.structures_OK() ) {
00046     cerr << "In context of Format:\n" << *this << endl;
00047     return 0;
00048   }
00049 
00050   return 1;
00051 }
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:05:52 2005