This repository was archived by the owner on Jul 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020#include " CmdHandler.h"
2121
22+ static bool g_logEnable = true ;
23+
2224int GetEventCode (std::string str)
2325{
24- std::cout << str << " @@@@@@@@@" << std::endl;
26+ if (g_logEnable)
27+ std::cout << str << " @@@@@@@@@" << std::endl;
28+
2529 int event = 0 ;
2630
2731 if (str == " VHAL_DD_EVENT_DISPINFO_REQ" )
@@ -52,6 +56,16 @@ int GetEventCode(std::string str)
5256 return event;
5357}
5458
59+ void YAML::SetParserLogFlag (bool value)
60+ {
61+ g_logEnable = value;
62+ }
63+
64+ bool YAML::GetParserLogFlag ()
65+ {
66+ return g_logEnable;
67+ }
68+
5569bool YAML ::convert<AicEventMetadataPtr>::decode(const YAML ::Node& node, AicEventMetadataPtr &mptr)
5670{
5771 if (mptr == nullptr || !node.IsMap ())
Original file line number Diff line number Diff line change @@ -91,5 +91,9 @@ namespace YAML
9191 template <> struct convert <DisplayCtrlPtr> {
9292 static bool decode (const Node& node, DisplayCtrlPtr &mptr);
9393 };
94+
95+ bool GetParserLogFlag ();
96+
97+ void SetParserLogFlag (bool value);
9498}
9599#endif
You can’t perform that action at this time.
0 commit comments