SIS
Symmetric Index Structures
/Users/dbr/ma/src/lmu/cis/sis/adapter/CompressedAutomatonSerializing.hpp
Go to the documentation of this file.
00001 #ifndef COMPRESSEDAUTOMATONSERIALIZING_HPP
00002 #define COMPRESSEDAUTOMATONSERIALIZING_HPP
00003 
00004 #include "../cppbase.hpp"
00005 #include "CompressedAutomatonAdapterInterface.hpp"
00006 #include "ManagedStageAutomatonInterface.hpp"
00007 
00008 namespace lmu { namespace cis { namespace sis {
00009 
00010 class CompressedAutomatonSerializing
00011     : public virtual ManagedStageAutomatonInterface
00012     , public virtual CompressedAutomatonAdapterInterface
00013 {
00014     virtual void Write(const S8* filename) = 0;
00015     // virtual CompressedAutomaton* Read( FILE * fp ) = 0;
00016     // virtual CompressedAutomaton * Read(const S8* filename) = 0;
00017 };
00018 
00019 // CompressedAutomaton * CompressedAutomatonSerializing::Read( FILE * fp ) {
00020 //     std::cout << "CompressedAutomaton * CompressedAutomatonSerializing::Read( FILE * fp )" << std::endl;
00021 // 
00022 //     automaton() = CompressedAutomatonRead( fp );
00023 //         
00024 //     // assert(C_CompressedAutomaton != NO);
00025 // 
00026 //     ManagedAutomatonStage_ = CLOSED;
00027 // 
00028 //     return automaton();
00029 // }
00030 // 
00031 // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00032 // CompressedAutomaton * CompressedAutomatonSerializing::Read( const S8* fn ) {
00033 //     std::cout << "CompressedAutomaton * CompressedAutomatonSerializing::Read( const S8* fn )" << std::endl;
00034 // 
00035 //     
00036 //     FILE* fpIn = Fopen(fn, "rb");
00037 //     Read( fpIn );
00038 //     Fclose(fpIn);
00039 // 
00040 //     ManagedAutomatonStage_ = CLOSED;
00041 // 
00042 //     return automaton();
00043 // }
00044 
00045 }}} /* End of namespace lmu::cis::sis */
00046 
00047 #endif /* end of include guard: COMPRESSEDAUTOMATONSERIALIZING_HPP */