VR-Forces 4.1.1 Class Documentation
extMtlParamDbWriter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: extMtlParamDbWriter.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtExtMtlParameterDbWriter_H_
10 #define DtExtMtlParameterDbWriter_H_
11 
13 #include "extMtlParamDbReader.h"
14 #include <string>
15 
16 class DtReaderWriter;
17 
18 //class DtExtMtlParameterDbWriter:
19 //
20 //Instances of DtExtMtlParameterDbWriter extend DtMtlParameterDbReader to
21 //preserve comments when writing out a parameter database file.
22 
24 {
25 public:
26 
27  //default constructor
29 
30  //destructor
32 
33  //Set initial comment to be written at start of file
34  virtual void setInitialComment(const std::string& comment);
35 
36  //Set comment map to be used in prePutSelfCb(). Contains mapping of
37  //DtReaderWriter symbols to comments.
38  virtual void setReaderWriterCommentMap(const DtReaderWriterCommentMap* map);
39 
40 protected:
41 
42  //Writes myInitialComment to file.
43  virtual void preWrite(const DtMtlParameterDbFileData&, const DtFilename&, FILE*) const;
44 
45  //Called by prePutSelfCb. Overridden to use
46  //DtReaderWriterCommentMap to look up comments associated with
47  //DtReaderWriter object. If one exists, writes out comment to file.
48  //(Comment assoicated with symbol will appear immediately before
49  //it in the file.)
50  virtual void processPrePutSelfCb(DtReaderWriter* readerWriterObject,
51  FILE* fp);
52 
53  //copy constructor - not implemented
55 
56  //assignment operator - not implemented
58 
59 protected:
60 
61  std::string myInitialComment;
63 };
64 
65 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)