VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
myMtlParamDbWriter.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: myMtlParamDbWriter.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef MyMtlParameterDbWriter_H_
13
#define MyMtlParameterDbWriter_H_
14
15
#include "
vrfobjparam/mtlParamDbWriter.h
"
16
#include "
entityEditorImpl/myMtlParamDbEntry.h
"
17
18
class
DtReaderWriterRegistry
;
19
class
DtComponentDescriptorList
;
20
21
#include <string>
22
#include "
entityEditorImpl/entityEditorImplDefines.h
"
23
24
class
DT_DLL_entityeditorimpl
MyMtlParameterDbWriter
:
public
DtMtlParameterDbWriter
25
{
26
public
:
27
29
MyMtlParameterDbWriter
();
30
32
virtual
~
MyMtlParameterDbWriter
();
33
34
void
setSaveHeaderOnSave(
bool
);
35
bool
saveHeaderOnSave()
const
;
36
37
void
setCommentInformation(
const
std::string&,
const
DtReaderWriterCommentMap
&);
38
39
static
void
setForceSave
(
bool
b) { theForceFlag = b; };
40
static
bool
forceSave
() {
return
theForceFlag; };
41
42
protected
:
44
virtual
bool
write
(
DtMtlParameterDb
* parameterDb,
45
const
DtFilename& parameterDbFile,
const
DtFilename& opeDirectory);
46
48
virtual
bool
writeTopLevelParameterDbFile
(
49
const
DtMtlParameterDbFileData
& parameterFileData,
50
const
DtFilename& parameterDbFile)
const
;
51
52
virtual
void
processPrePutSelfCb
(
DtReaderWriter
* readerWriterObject, FILE* fp);
53
virtual
void
preWrite
(
const
DtMtlParameterDbFileData
&,
const
DtFilename&, FILE*)
const
;
54
virtual
void
writeEntry
(
DtMtlParameterDbFileData
*,
55
DtMtlParameterDbEntry
*,
const
DtFilename&,
const
DtFilename&);
56
virtual
DtFilename
generateOpeDirectory
(
const
DtFilename& parameterDbFile,
const
DtFilename& opeDirectory);
57
virtual
void
removeAllParametersNamed(
DtReaderWriterRegistry
& reg,
const
char
* name);
58
virtual
void
removeAllParametersNamed(
const
DtComponentDescriptorList
& lst,
const
char
* name);
59
60
private
:
62
MyMtlParameterDbWriter
(
const
MyMtlParameterDbWriter
& orig);
63
65
MyMtlParameterDbWriter
&
operator=
(
const
MyMtlParameterDbWriter
& orig);
66
67
protected
:
68
DtReaderWriterCommentMap
myFileCommentMap
;
69
DtReaderWriterCommentMap
myObjectCommentMap
;
70
std::string
myFileComment
;
71
bool
mySaveHeaderOnSave
;
72
static
bool
theForceFlag
;
73
};
74
75
inline
void
MyMtlParameterDbWriter::setSaveHeaderOnSave
(
bool
b)
76
{
77
mySaveHeaderOnSave
= b;
78
}
79
80
inline
bool
MyMtlParameterDbWriter::saveHeaderOnSave
()
const
81
{
82
return
mySaveHeaderOnSave
;
83
}
84
85
inline
void
MyMtlParameterDbWriter::setCommentInformation
(
const
std::string& f,
const
DtReaderWriterCommentMap
& c)
86
{
87
myFileComment
= f;
88
myFileCommentMap
= c;
89
}
90
91
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)