aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lldb-mi/MICmnLogMediumFile.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2015-02-06 21:38:51 +0000
committerEd Maste <emaste@FreeBSD.org>2015-02-06 21:38:51 +0000
commit205afe679855a4ce8149cdaa94d3f0868ce796dc (patch)
tree09bc83f73246ee3c7a779605cd0122093d2a8a19 /tools/lldb-mi/MICmnLogMediumFile.h
parent0cac4ca3916ac24ab6139d03cbfd18db9e715bfe (diff)
downloadsrc-205afe679855a4ce8149cdaa94d3f0868ce796dc.tar.gz
src-205afe679855a4ce8149cdaa94d3f0868ce796dc.zip
Import LLDB as of upstream SVN r225923 (git 2b588ecd)vendor/lldb/lldb-r225923
This corresponds with the branchpoint for the 3.6 release. A number of files not required for the FreeBSD build have been removed. Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/vendor/lldb/dist/; revision=278332 svn path=/vendor/lldb/lldb-r225923/; revision=278333; tag=vendor/lldb/lldb-r225923
Diffstat (limited to 'tools/lldb-mi/MICmnLogMediumFile.h')
-rw-r--r--tools/lldb-mi/MICmnLogMediumFile.h128
1 files changed, 63 insertions, 65 deletions
diff --git a/tools/lldb-mi/MICmnLogMediumFile.h b/tools/lldb-mi/MICmnLogMediumFile.h
index affe24e09e57..8496320db678 100644
--- a/tools/lldb-mi/MICmnLogMediumFile.h
+++ b/tools/lldb-mi/MICmnLogMediumFile.h
@@ -8,89 +8,87 @@
//===----------------------------------------------------------------------===//
//++
-// File: MICmnLogMediumFile.h
+// File: MICmnLogMediumFile.h
//
-// Overview: CMICmnLogMediumFile interface.
+// Overview: CMICmnLogMediumFile interface.
//
-// Environment: Compilers: Visual C++ 12.
-// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
-// Libraries: See MIReadmetxt.
+// Environment: Compilers: Visual C++ 12.
+// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
+// Libraries: See MIReadmetxt.
//
-// Copyright: None.
+// Copyright: None.
//--
#pragma once
// In-house headers:
#include "MIUtilFileStd.h"
-#include "MIUtilString.h"
+#include "MIUtilString.h"
#include "MICmnBase.h"
#include "MICmnLog.h"
#include "MIUtilDateTimeStd.h"
//++ ============================================================================
-// Details: MI common code implementation class. Logs application fn trace/message/
-// error messages to a file. Used as part of the CMICmnLog Logger
-// system. When instantiated *this object is register with the Logger
-// which the Logger when given data to write to registered medium comes
-// *this medium.
-// Singleton class.
-// Gotchas: None.
-// Authors: Illya Rudkin 30/01/2014.
-// Changes: None.
+// Details: MI common code implementation class. Logs application fn trace/message/
+// error messages to a file. Used as part of the CMICmnLog Logger
+// system. When instantiated *this object is register with the Logger
+// which the Logger when given data to write to registered medium comes
+// *this medium.
+// Singleton class.
+// Gotchas: None.
+// Authors: Illya Rudkin 30/01/2014.
+// Changes: None.
//--
-class CMICmnLogMediumFile
-: public CMICmnBase
-, public CMICmnLog::IMedium
+class CMICmnLogMediumFile : public CMICmnBase, public CMICmnLog::IMedium
{
-// Statics:
-public:
- static CMICmnLogMediumFile & Instance( void );
+ // Statics:
+ public:
+ static CMICmnLogMediumFile &Instance(void);
-// Methods:
-public:
- bool SetHeaderTxt( const CMIUtilString & vText );
- bool SetVerbosity( const MIuint veType );
- MIuint GetVerbosity( void ) const;
- const CMIUtilString & GetFileName( void ) const;
- const CMIUtilString & GetFileNamePath( void ) const;
- bool IsOk( void ) const;
- bool IsFileExist( void ) const;
- const CMIUtilString & GetLineReturn( void ) const;
+ // Methods:
+ public:
+ bool SetHeaderTxt(const CMIUtilString &vText);
+ bool SetVerbosity(const MIuint veType);
+ MIuint GetVerbosity(void) const;
+ const CMIUtilString &GetFileName(void) const;
+ const CMIUtilString &GetFileNamePath(void) const;
+ bool IsOk(void) const;
+ bool IsFileExist(void) const;
+ const CMIUtilString &GetLineReturn(void) const;
-// Overridden:
-public:
- // From CMICmnBase
- /* dtor */ virtual ~CMICmnLogMediumFile( void );
- // From CMICmnLog::IMedium
- virtual bool Initialize( void );
- virtual const CMIUtilString & GetName( void ) const;
- virtual bool Write( const CMIUtilString & vData, const CMICmnLog::ELogVerbosity veType );
- virtual const CMIUtilString & GetError( void ) const;
- virtual bool Shutdown( void );
+ // Overridden:
+ public:
+ // From CMICmnBase
+ /* dtor */ virtual ~CMICmnLogMediumFile(void);
+ // From CMICmnLog::IMedium
+ virtual bool Initialize(void);
+ virtual const CMIUtilString &GetName(void) const;
+ virtual bool Write(const CMIUtilString &vData, const CMICmnLog::ELogVerbosity veType);
+ virtual const CMIUtilString &GetError(void) const;
+ virtual bool Shutdown(void);
-// Methods:
-private:
- /* ctor */ CMICmnLogMediumFile( void );
- /* ctor */ CMICmnLogMediumFile( const CMICmnLogMediumFile & );
- void operator=( const CMICmnLogMediumFile & );
-
- bool FileWriteEnglish( const CMIUtilString & vData );
- bool FileFormFileNamePath( void );
- CMIUtilString MassagedData( const CMIUtilString & vData, const CMICmnLog::ELogVerbosity veType );
- bool FileWriteHeader( void );
- MIchar ConvertLogVerbosityTypeToId( const CMICmnLog::ELogVerbosity veType ) const;
- CMIUtilString ConvertCr( const CMIUtilString & vData ) const;
+ // Methods:
+ private:
+ /* ctor */ CMICmnLogMediumFile(void);
+ /* ctor */ CMICmnLogMediumFile(const CMICmnLogMediumFile &);
+ void operator=(const CMICmnLogMediumFile &);
-// Attributes:
-private:
- const CMIUtilString m_constThisMediumName;
- const CMIUtilString m_constMediumFileName;
- //
- CMIUtilString m_fileNamePath;
- MIuint m_eVerbosityType;
- CMIUtilString m_strDate;
- CMIUtilString m_fileHeaderTxt;
- CMIUtilFileStd m_file;
- CMIUtilDateTimeStd m_dateTime;
+ bool FileWriteEnglish(const CMIUtilString &vData);
+ bool FileFormFileNamePath(void);
+ CMIUtilString MassagedData(const CMIUtilString &vData, const CMICmnLog::ELogVerbosity veType);
+ bool FileWriteHeader(void);
+ MIchar ConvertLogVerbosityTypeToId(const CMICmnLog::ELogVerbosity veType) const;
+ CMIUtilString ConvertCr(const CMIUtilString &vData) const;
+
+ // Attributes:
+ private:
+ const CMIUtilString m_constThisMediumName;
+ const CMIUtilString m_constMediumFileName;
+ //
+ CMIUtilString m_fileNamePath;
+ MIuint m_eVerbosityType;
+ CMIUtilString m_strDate;
+ CMIUtilString m_fileHeaderTxt;
+ CMIUtilFileStd m_file;
+ CMIUtilDateTimeStd m_dateTime;
};