Lines Matching refs:CommandParser
16 #include "CommandParser.h"
25 CommandParser* CommandParser::example = nullptr;
26 CommandParser::CommandParser()
40 screenMode(CommandParser::ScreenMode::DYNAMIC),
98 CommandParser& CommandParser::GetInstance()
100 static CommandParser instance;
107 bool CommandParser::ProcessCommand(std::vector<std::string> strs)
125 bool CommandParser::IsCommandValid()
146 bool CommandParser::IsSet(std::string key)
154 std::string CommandParser::Value(std::string key)
163 std::vector<std::string> CommandParser::Values(std::string key)
172 void CommandParser::Register(std::string key, uint32_t argc, std::string help)
178 bool CommandParser::IsResolutionValid(int32_t resolution) const
186 std::string CommandParser::GetDeviceType() const
191 bool CommandParser::IsRegionRefresh() const
196 bool CommandParser::IsCardDisplay() const
201 std::string CommandParser::GetConfigPath() const
206 std::string CommandParser::GetProjectID() const
211 std::string CommandParser::GetAppResourcePath() const
216 std::string CommandParser::GetScreenShape() const
221 std::string CommandParser::GetProjectModel() const
226 std::string CommandParser::GetPages() const
231 std::string CommandParser::GetContainerSdkPath() const
236 CommandParser::ScreenMode CommandParser::GetScreenMode() const
241 std::string CommandParser::GetConfigChanges() const
246 int32_t CommandParser::GetOrignalResolutionWidth() const
251 int32_t CommandParser::GetOrignalResolutionHeight() const
256 int32_t CommandParser::GetCompressionResolutionWidth() const
261 int32_t CommandParser::GetCompressionResolutionHeight() const
266 uint32_t CommandParser::GetJsHeapSize() const
271 std::string CommandParser::GetAppName() const
276 bool CommandParser::IsSendJSHeap() const
281 bool CommandParser::IsComponentMode() const
286 std::string CommandParser::GetAbilityPath() const
291 std::string CommandParser::GetAbilityName() const
296 bool CommandParser::IsStaticCard() const
301 bool CommandParser::IsDebugPortValid()
317 ILOG("CommandParser debug port: %s", Value("p").c_str());
321 bool CommandParser::IsAppPathValid()
338 bool CommandParser::IsAppNameValid()
352 ILOG("CommandParser app name: %s", appName.c_str());
356 bool CommandParser::IsResolutionValid()
364 ILOG("CommandParser resolution: %d %d %d %d", orignalResolutionWidth, orignalResolutionHeight,
376 bool CommandParser::IsJsHeapValid()
392 ILOG("CommandParser js heap: %d", jsHeapSize);
396 bool CommandParser::IsJsHeapFlagValid()
407 ILOG("CommandParser is send JS heap: %d", isSendJSHeap);
411 bool CommandParser::IsScreenShapeValid()
422 ILOG("CommandParser screen shape: %s", screenShape.c_str());
426 bool CommandParser::IsDeviceValid()
437 ILOG("CommandParser device: %s", deviceType.c_str());
441 bool CommandParser::IsUrlValid()
448 ILOG("CommandParser url: %s", urlPath.c_str());
452 bool CommandParser::IsConfigPathValid()
468 bool CommandParser::IsAppResourcePathValid()
484 bool CommandParser::IsProjectModelValid()
499 ILOG("CommandParser projectModel: %s", projectModelStr.c_str());
503 bool CommandParser::IsPagesValid()
513 ILOG("CommandParser pages: %s", pages.c_str());
517 bool CommandParser::IsResolutionArgValid(std::string command)
531 bool CommandParser::IsResolutionRangeValid(std::string value)
546 bool CommandParser::IsRefreshValid()
564 bool CommandParser::IsCardValid()
585 bool CommandParser::IsProjectIDValid()
597 bool CommandParser::IsColorModeValid()
612 bool CommandParser::IsAceVersionValid()
627 bool CommandParser::IsOrientationValid()
642 bool CommandParser::IsWebSocketPortValid()
657 ILOG("CommandParser WebSocket listening port: %s", Value("lws").c_str());
661 bool CommandParser::IsScreenModeValid()
671 screenMode = (mode == "static" ? CommandParser::ScreenMode::STATIC :
672 CommandParser::ScreenMode::DYNAMIC);
674 ILOG("CommandParser screen mode: %s", mode.c_str());
678 bool CommandParser::IsLanguageValid()
688 ILOG("CommandParser l: %s", lan.c_str());
692 bool CommandParser::IsTracePipeNameValid()
702 ILOG("CommandParser ts: %s", tsName.c_str());
706 bool CommandParser::IsLocalSocketNameValid()
718 ILOG("CommandParser s: %s", socketName.c_str());
722 bool CommandParser::IsConfigChangesValid()
732 ILOG("CommandParser cc: %s", configChange.c_str());
736 bool CommandParser::IsScreenDensityValid()
746 ILOG("CommandParser sd: %s", density.c_str());
750 bool CommandParser::IsContainerSdkPathValid()
766 std::string CommandParser::HelpText()
776 void CommandParser::ProcessingCommand(const std::vector<std::string>& strs)
797 int CommandParser::GetProjectModelEnumValue() const
805 std::string CommandParser::GetProjectModelEnumName(int enumValue) const
813 bool CommandParser::CheckParamInvalidity(std::string param, bool isNum = false)
819 bool CommandParser::IsComponentModeValid()
836 bool CommandParser::IsAbilityPathValid()
858 bool CommandParser::IsAbilityNameValid()
880 bool CommandParser::IsStaticCardValid()
897 bool CommandParser::IsMainArgLengthInvalid(const char* str) const
907 bool CommandParser::IsFoldableValid()
924 bool CommandParser::IsFoldStatusValid()
940 bool CommandParser::IsFoldResolutionValid()
949 ILOG("CommandParser fold resolution: %d %d", foldResolutionWidth, foldResolutionHeight);
960 bool CommandParser::IsFoldable() const
965 std::string CommandParser::GetFoldStatus() const
970 int32_t CommandParser::GetFoldResolutionWidth() const
975 int32_t CommandParser::GetFoldResolutionHeight() const
980 std::string CommandParser::GetLoaderJsonPath() const
985 bool CommandParser::IsLoaderJsonPathValid()
1000 int CommandParser::ParseArgs(int argc, char* argv[])
1021 void CommandParser::GetCommandInfo(CommandInfo& info) const
1040 void CommandParser::GetFoldInfo(FoldInfo& info) const
1049 std::string CommandParser::GetComponentTestConfig() const