VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/c7bMfRec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1998 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: c7bMfRec.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef c7bMfRec_H_
00009 #define c7bMfRec_H_
00010 
00011 // \file c7bMfRec.h
00012 // \brief Contains the DtC7bMetafileRecord class declaration.
00013 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00014 #include "terrainDbFactory/terrainMfRec.h"
00015 #include <iosfwd>
00016 
00017 //
00018 // The ctdb metafile record specifies one c7b (ctdb version 7) file in the 
00019 // metafile.
00020 class DT_DLL_terrainDbFactory DtC7bMetafileRecord : public DtTerrainMetafileRecord
00021 {
00022 
00023 public:
00024 
00025    // default constructor.
00026    DtC7bMetafileRecord();
00027 
00028    // destructor
00029    virtual ~DtC7bMetafileRecord();
00030 
00031    // copy constructor
00032    DtC7bMetafileRecord(const DtC7bMetafileRecord& orig);
00033 
00034    // assignment operator
00035    DtC7bMetafileRecord& operator=(const DtC7bMetafileRecord& orig);
00036 
00037    // Returns "c7b" or "c7l" depending on extension.
00038    virtual DtString recordTypeName() const;
00039 
00040    // Read self from stream.
00041    virtual bool get(std::istream& stream);
00042 
00043    // identifies a token or passes it to the parent class.
00044    virtual bool processToken(std::istream& stream, DtString& token);
00045    virtual void setFilename(const DtFilename & name);
00046 
00047    static DtMetafileRecord * create();
00048 
00049 protected:
00050 
00051    // Write self to stream.
00052    virtual bool writeAttributes(std::ostream& stream) const;
00053    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00054    virtual bool setToken(const DtString& token, const DtString value);
00055 
00056 protected:
00057 
00058    static const DtString theParameterFile;
00059 
00060 };
00061 
00062 #endif
00063 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)