VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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&);

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)