VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfutil
rwUserQuestion.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfutil/vrfutilDefines.h
"
12
#include <
vrfutil/readerWriter.h
>
13
#include <
vrfutil/templatedDecoders.h
>
14
#include <
vrfutil/rwTemplatedList.h
>
15
#include <
vrfutil/rwTranslatableStringObject.h
>
16
#include <vector>
17
#include <string>
18
#include <
vrfutil/rwInt.h
>
19
#include <
vrfutil/rwString.h
>
20
22
class
DT_DLL_vrfutil
DtRwUserQuestion
:
public
DtReaderWriter
23
{
24
public
:
25
27
DtRwUserQuestion
();
28
29
DtRwUserQuestion
(
const
DtString
& name,
DtReaderWriterRegistry
*
30
parentRegistry = 0);
31
32
DtRwUserQuestion
(
const
DtString
& name,
const
DtRwUserQuestion
& orig,
33
DtReaderWriterRegistry
* parentRegistry = 0);
34
35
DtRwUserQuestion
(
const
DtRwUserQuestion
& orig,
36
DtReaderWriterRegistry
* parentRegistry = 0);
37
39
virtual
~
DtRwUserQuestion
();
40
42
DtRwUserQuestion
&
operator=
(
const
DtRwUserQuestion
& orig);
43
47
virtual
const
char
*
readerWriterType
()
const
;
48
50
static
const
char
*
theXmlType
();
51
52
virtual
const
char
*
xmlType
()
const
53
{
54
return
theXmlType
();
55
}
56
58
virtual
void
setQuestionRespondingTo(
const
DtString
& scriptId,
int
questionId);
59
virtual
void
questionRespondingTo(
DtString
& scriptId,
int
& questionId)
const
;
60
virtual
const
DtString
& scriptId()
const
;
61
virtual
int
questionId()
const
;
62
64
virtual
void
setOptions(
const
std::vector<DtRwTranslatableStringObject>&);
65
virtual
std::vector<DtRwTranslatableStringObject> options()
const
;
66
68
virtual
void
setTitle(
const
DtRwTranslatableStringObject
&);
69
virtual
const
DtRwTranslatableStringObject
& title()
const
;
70
72
virtual
void
setMessage(
const
DtRwTranslatableStringObject
&);
73
virtual
const
DtRwTranslatableStringObject
& message()
const
;
74
79
virtual
void
setDisplayFlags(
int
);
80
virtual
int
displayFlags()
const
;
81
82
protected
:
83
DtRwInt
myQuestionId
;
84
DtRwString
myScriptId
;
85
DtRwTemplatedListPtr<DtRwTranslatableStringObject, true>
myOptions
;
86
DtRwTranslatableStringObject
myTitle
;
87
DtRwTranslatableStringObject
myMessage
;
88
DtRwInt
myDisplayFlags
;
89
};
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)