STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
VsgDbg Class Reference

#include <vsgcapture.h>

Public Member Functions

 VsgDbg (bool bDefaultInit)
 
 ~VsgDbg ()
 
void Init (std::function< void(int len, wchar_t *pszBuffer)> vsgLogGetter)
 
void UnInit ()
 
void ToggleHUD ()
 
void BeginCapture ()
 
void EndCapture ()
 
void CaptureCurrentFrame ()
 
void Copy (_In_z_ wchar_t const *szNewVSGLog)
 
void AddMessage (_In_z_ wchar_t const *szMessage)
 

Constructor & Destructor Documentation

VsgDbg::VsgDbg ( bool  bDefaultInit)
inline
32  {
33  if(bDefaultInit)
34  {
35 #ifndef DONT_SAVE_VSGLOG_TO_TEMP
36 
37 #if WINAPI_FAMILY == 2
38  Init([=] (int len, wchar_t * pszBuffer) {
39 
40  const wchar_t * tempPath = Platform::String::Concat(Platform::String::Concat(Windows::Storage::ApplicationData::Current->TemporaryFolder->Path, L"\\"), VSG_DEFAULT_RUN_FILENAME)->Data();
41  wcscpy_s(pszBuffer, len, tempPath);
42  });
43 #else
44  Init([=] (int len, wchar_t * pszBuffer) {
45 
46  wchar_t tempDir[MAX_PATH];
47  wchar_t filePath[MAX_PATH];
48 
49  if(GetTempPath(MAX_PATH, tempDir) == 0)
50  {
51  return;
52  }
53 
54  swprintf_s(filePath, MAX_PATH, L"%s%s", tempDir, VSG_DEFAULT_RUN_FILENAME);
55 
56  wcscpy_s(pszBuffer, len, filePath);
57  });
58 #endif
59 
60 #else
61  Init([=] (int len, wchar_t * pszBuffer) {
62  wcscpy_s(pszBuffer, len, VSG_DEFAULT_RUN_FILENAME);
63  });
64 #endif
65  }
66  }
void Init(std::function< void(int len, wchar_t *pszBuffer)> vsgLogGetter)
Definition: vsgcapture.h:73
_CRTIMP_ALTERNATIVE int __cdecl swprintf_s(_Out_writes_z_(_SizeInWords) wchar_t *_Dst, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_wat_ _CRTIMP_ALTERNATIVE errno_t __cdecl wcscpy_s(_Out_writes_z_(_SizeInWords) wchar_t *_Dst, _In_ rsize_t _SizeInWords, _In_z_ const wchar_t *_Src)
#define VSG_DEFAULT_RUN_FILENAME
Definition: vsgcapture.h:14
VsgDbg::~VsgDbg ( )
inline
69  {
70  UnInit();
71  }
void UnInit()
Definition: vsgcapture.h:79

Member Function Documentation

void VsgDbg::AddMessage ( _In_z_ wchar_t const *  szMessage)
inline
110  {
111  VsgDbgAddHUDMessage(szMessage);
112  }
void __stdcall VsgDbgAddHUDMessage(_In_z_ wchar_t const *szMessage)
void VsgDbg::BeginCapture ( )
inline
90  {
92  }
void __stdcall VsgDbgBeginCapture()
void VsgDbg::CaptureCurrentFrame ( )
inline
100  {
102  }
void __stdcall VsgDbgCaptureCurrentFrame()
void VsgDbg::Copy ( _In_z_ wchar_t const *  szNewVSGLog)
inline
105  {
106  VsgDbgCopy(szNewVSGLog);
107  }
void __stdcall VsgDbgCopy(_In_z_ wchar_t const *szNewVSGLog)
void VsgDbg::EndCapture ( )
inline
95  {
97  }
void __stdcall VsgDbgEndCapture()
void VsgDbg::Init ( std::function< void(int len, wchar_t *pszBuffer)>  vsgLogGetter)
inline
74  {
75  VsgDbgInitDelayed(vsgLogGetter);
76  }
void __stdcall VsgDbgInitDelayed(std::function< void(int len, wchar_t *pszBuffer)>)
void VsgDbg::ToggleHUD ( )
inline
85  {
87  }
void __stdcall VsgDbgToggleHUD()
void VsgDbg::UnInit ( )
inline
80  {
81  VsgDbgUnInit();
82  }
void __stdcall VsgDbgUnInit()

The documentation for this class was generated from the following file: