From d87bff444a718ea2e0ad226ac1d2fc729fe73fda Mon Sep 17 00:00:00 2001 From: superjom Date: Fri, 22 Dec 2017 17:35:37 +0800 Subject: [PATCH] code format --- visualdl/logic/sdk.cc | 2 +- visualdl/logic/sdk.h | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/visualdl/logic/sdk.cc b/visualdl/logic/sdk.cc index 8ac54581..11b43937 100644 --- a/visualdl/logic/sdk.cc +++ b/visualdl/logic/sdk.cc @@ -2,7 +2,7 @@ namespace visualdl { -namespace components { +namespace components { template void components::Scalar::AddRecord(int id, const std::vector &values) { diff --git a/visualdl/logic/sdk.h b/visualdl/logic/sdk.h index 930fc24e..e75fd7d1 100644 --- a/visualdl/logic/sdk.h +++ b/visualdl/logic/sdk.h @@ -12,12 +12,15 @@ namespace components { */ template struct Scalar { - Scalar(Tablet tablet) : tablet_(tablet) { tablet_.SetType(Tablet::Type::kScalar);} + Scalar(Tablet tablet) : tablet_(tablet) { + tablet_.SetType(Tablet::Type::kScalar); + } + void SetCaption(const std::string cap) { tablet_.SetCaptions(std::vector({cap})); } - void AddRecord(int id, const std::vector &values); + void AddRecord(int id, const std::vector& values); private: Tablet tablet_; @@ -33,7 +36,7 @@ struct ScalarReader { std::vector captions() const; size_t size() const; - private: +private: TabletReader reader_; }; -- GitLab