MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Submit

Method Submit

IntelPresentMon/CommonUtilities/log/BasicFileDriver.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 pFileStrategy_{ std::move(pFileStrategy) }
14 {}
15 void BasicFileDriver::Submit(const Entry& e)
16 {
17 if (pFormatter_ && pFileStrategy_) {
18 auto pFile = pFileStrategy_->AddLine();
19 *pFile << pFormatter_->Format(e);
20 }
21 else {
22 if (!pFormatter_) {
23 pmlog_panic_("BasicFileDriver submitted to without a formatter set");
24 }
25 if (!pFileStrategy_) {
26 pmlog_panic_("BasicFileDriver submitted to without a file strategy set");
27 }
28 }
29 }
30 void BasicFileDriver::SetFormatter(std::shared_ptr<ITextFormatter> pFormatter)
31 {
32 pFormatter_ = std::move(pFormatter);

Callers

nothing calls this directly

Calls 2

AddLineMethod · 0.80
FormatMethod · 0.45

Tested by

no test coverage detected