VR-Forces 4.3 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
vrfobjcore
objectConsolePrinter.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <vlutil/vlPrint.h>
14
#include "
vrfobjcore/vrfobjcoreDefines.h
"
15
#include <
vrfutil/rwTranslatableStringObject.h
>
16
17
class
DtVrfObject
;
18
class
DtTranslatableStream
;
19
24
class
DT_DLL_vrfobjcore
DtTranslatableOutputStreamBuffer
:
public
DtOutputStreamBuffer
25
{
26
public
:
27
enum
TranslationStep
28
{
29
None
,
30
String
,
31
Argument
32
};
33
34
DtTranslatableOutputStreamBuffer
();
35
virtual
~
DtTranslatableOutputStreamBuffer
();
36
static
DtString
moduleFrom(
const
DtString
& source,
DtString
& module);
37
38
protected
:
39
virtual
std::basic_ios< char >::int_type overflow( std::basic_ios< char >::int_type c );
40
virtual
std::streamsize xsputn(
const
char
*_Ptr, std::streamsize _Count);
41
42
protected
:
43
TranslationStep
myIsTranslating
;
44
DtString
myModule
;
45
DtRwTranslatableStringObject
myTranslation
;
46
};
47
48
class
DT_DLL_vrfobjcore
DtTranslatableOutputStream
:
public
DtOutputStream
49
{
50
51
public
:
52
53
//Constructor takes a pointer to a variable to use to check against a
54
//global threshold. Each DtOutputStreamBuffer needs to also have a
55
//unique DtOutputStreamBuffer which should be created before
56
//the DtOutputStream that uses it is created.
57
DtTranslatableOutputStream
(
DtOutputStreamBuffer
*b,
58
int
&globalThresholdRef,
59
int
threshold = 1,
60
DtPrinter
*dflt_printer = 0);
61
62
virtual
~
DtTranslatableOutputStream
();
63
65
virtual
void
operator()(
const
char
*s, ...);
66
};
67
70
class
DT_DLL_vrfobjcore
DtObjectConsoleNetworkPrinter
:
public
DtPrinter
71
{
72
private
:
74
DtObjectConsoleNetworkPrinter
();
75
76
public
:
77
DtObjectConsoleNetworkPrinter
(
DtVrfObject
* vrfObj);
78
79
virtual
void
write(
const
std::string &str,
int
notify_level);
80
81
protected
:
82
DtVrfObject
*
myVrfObject
;
83
};
84
88
class
DT_DLL_vrfobjcore
DtObjectConsoleVrlinkPrinter
:
public
DtPrinter
89
{
90
private
:
92
DtObjectConsoleVrlinkPrinter
();
93
94
public
:
95
DtObjectConsoleVrlinkPrinter
(
DtVrfObject
* vrfObj);
96
102
virtual
void
write(
const
std::string& str,
int
notify_level);
103
104
protected
:
105
DtVrfObject
*
myVrfObject
;
106
};
107
108
DT_DLL_vrfobjcore
DtOutputStream
&
operator<<
(
DtOutputStream
& str,
const
DtTranslatableStream
&);
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)