8 #ifndef CSCORE_SINKIMPL_H_ 9 #define CSCORE_SINKIMPL_H_ 14 #include <llvm/StringRef.h> 15 #include <support/mutex.h> 17 #include "SourceImpl.h" 37 void SetEnabled(
bool enabled);
39 void SetSource(std::shared_ptr<SourceImpl> source);
41 std::shared_ptr<SourceImpl> GetSource()
const {
42 std::lock_guard<wpi::mutex> lock(m_mutex);
46 std::string GetError()
const;
50 virtual void SetSourceImpl(std::shared_ptr<SourceImpl> source);
52 mutable wpi::mutex m_mutex;
56 std::string m_description;
57 std::shared_ptr<SourceImpl> m_source;
58 int m_enabledCount{0};
63 #endif // CSCORE_SINKIMPL_H_ Definition: SinkImpl.h:19
Definition: SinkImpl.h:23
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42