VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
16 
17 class DtVrfObject;
19 
24 class DT_DLL_vrfobjcore DtTranslatableOutputStreamBuffer : public DtOutputStreamBuffer
25 {
26 public:
28  {
31  Argument
32  };
33 
36  static DtString moduleFrom(const DtString& source, DtString& module);
37 
38  static DtOutputStreamBuffer* creator();
39 
40 protected:
41  virtual std::basic_ios< char >::int_type overflow( std::basic_ios< char >::int_type c );
42  virtual std::streamsize xsputn(const char *_Ptr, std::streamsize _Count);
43 
44 protected:
48 };
49 
52 {
53 
54 public:
55 
56  //Constructor takes a pointer to a variable to use to check against a
57  //global threshold. Each DtOutputStreamBuffer needs to also have a
58  //unique DtOutputStreamBuffer which should be created before
59  //the DtOutputStream that uses it is created.
60  DtTranslatableOutputStream(DtOutputStreamBuffer *b,
61  int &globalThresholdRef,
62  int threshold = 1,
63  DtPrinter *dflt_printer = 0,
64  const std::string& prefix = "");
65 
66  virtual ~DtTranslatableOutputStream();
67 
69  virtual void operator()(const char *s, ...);
70 
72  DtOutputStreamBuffer *b,
73  int &globalThresholdRef,
74  int threshold = 1,
75  DtPrinter *dflt_printer = 0,
76  const std::string& prefix = "");
77 };
78 
82 {
83 private:
86 
87 public:
89 
90  virtual void write(const std::string &str, int notify_level, bool sync);
91 
92 protected:
94 };
95 
100 {
101 private:
104 
105 public:
107 
113  virtual void write(const std::string& str, int notify_level, bool sync);
114 
115 protected:
117 };
118 
119 DT_DLL_vrfobjcore DtOutputStream& operator<<(DtOutputStream& str, const DtTranslatableStream&);
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtString myModule
Definition: objectConsolePrinter.h:46
TranslationStep
Definition: objectConsolePrinter.h:27
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
Console printer which sends the console data to the network using the Comment PDU/Interaction.
Definition: objectConsolePrinter.h:81
Definition: outputChannelManager.h:148
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtVrfObject * myVrfObject
Definition: objectConsolePrinter.h:93
This stream is used by the scripting classes to be able to send out translatable messages from script...
Definition: translatableStream.h:22
Definition: objectConsolePrinter.h:29
const char * source
Definition: lz4.h:442
DtRwTranslatableStringObject is a simple class that will keep track of strings that can be translated...
Definition: rwTranslatableStringObject.h:28
Output stream buffer that allows for translation of component pieces.
Definition: objectConsolePrinter.h:24
DtRwTranslatableStringObject myTranslation
Definition: objectConsolePrinter.h:47
Definition: objectConsolePrinter.h:30
static DtChannelSpecificOutputStream * creator(DtOutputStreamBuffer *b, int &globalThresholdRef, int threshold=1, DtPrinter *dflt_printer=0, const std::string &prefix="")
Definition: outputChannelManager.h:192
TranslationStep myIsTranslating
Definition: objectConsolePrinter.h:45
Definition: objectConsolePrinter.h:50

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)