Files
clang-p2996/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessage.h
Todd Fiala 759300192a Add StructuredData plugin type; showcase with new DarwinLog feature
Take 2, with missing cmake line fixed.  Build tested on
Ubuntu 14.04 with clang-3.6.

See docs/structured_data/StructuredDataPlugins.md for details.

differential review: https://reviews.llvm.org/D22976

reviewers: clayborg, jingham
llvm-svn: 279202
2016-08-19 04:21:48 +00:00

54 lines
1019 B
C++

//===-- LogMessage.h --------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LogMessage_h
#define LogMessage_h
#include <string>
class LogMessage
{
public:
virtual
~LogMessage();
virtual bool
HasActivity() const = 0;
virtual const char*
GetActivity() const = 0;
virtual std::string
GetActivityChain() const = 0;
virtual bool
HasCategory() const = 0;
virtual const char*
GetCategory() const = 0;
virtual bool
HasSubsystem() const = 0;
virtual const char*
GetSubsystem() const = 0;
// This can be expensive, so once we ask for it, we'll cache the result.
virtual const char*
GetMessage() const = 0;
protected:
LogMessage();
};
#endif /* LogMessage_h */