Skip to content

Commit

Permalink
[EN-7490] Implement Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ttldtor committed Sep 18, 2023
1 parent 92b583c commit 9e454bd
Show file tree
Hide file tree
Showing 3 changed files with 388 additions and 14 deletions.
63 changes: 63 additions & 0 deletions tools/Tools/src/Args/Args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,67 @@ Use "all" for wildcard subscription.
The "dxfeed.wildcard.enable" property must be set to true to enable wildcard subscription.
)"};

const std::string PropertiesArg::NAME{"properties"};
const std::string PropertiesArg::SHORT_NAME{"p"};
const std::string PropertiesArg::LONG_NAME{"properties"};
const std::string PropertiesArg::HELP_TEXT{R"(
Comma-separated list of properties (key-value pair separated by an equals sign).
)"};

const std::string FromTimeArg::NAME{"fromTime"};
const std::string FromTimeArg::SHORT_NAME{"f"};
const std::string FromTimeArg::LONG_NAME{"from-time"};
const std::string FromTimeArg::HELP_TEXT{R"(
From-time for the history subscription in standard formats (see "Help Time Format").
)"};

const std::string SourceArg::NAME{"source"};
const std::string SourceArg::SHORT_NAME{"s"};
const std::string SourceArg::LONG_NAME{"source"};
const std::string SourceArg::HELP_TEXT{R"(
Order source for the indexed subscription (e.g. NTV, ntv).
)"};

const std::string TapeArg::NAME{"tape"};
const std::string TapeArg::SHORT_NAME{"t"};
const std::string TapeArg::LONG_NAME{"tape"};
const std::string TapeArg::HELP_TEXT{R"(
Tape all incoming data into the specified file (see "Help Tape").
)"};

const std::string QuiteArg::NAME{"quite"};
const std::string QuiteArg::SHORT_NAME{"q"};
const std::string QuiteArg::LONG_NAME{"quite"};
const std::string QuiteArg::HELP_TEXT{R"(
Be quiet, event printing is disabled.
)"};

const std::string ForceStreamArg::NAME{"forceStream"};
const std::string ForceStreamArg::SHORT_NAME{};
const std::string ForceStreamArg::LONG_NAME{"force-stream"};
const std::string ForceStreamArg::HELP_TEXT{R"(
Enforces a streaming contract for subscription. The StreamFeed role is used instead of Feed.
)"};

const std::string CPUUsageByCoreArg::NAME{"cpuUsageByCore"};
const std::string CPUUsageByCoreArg::SHORT_NAME{};
const std::string CPUUsageByCoreArg::LONG_NAME{"cpu-usage-by-core"};
const std::string CPUUsageByCoreArg::HELP_TEXT{R"(
Show CPU usage by core (where 1 core = 100%).
)"};

const std::string DetachListenerArg::NAME{"tape"};
const std::string DetachListenerArg::SHORT_NAME{};
const std::string DetachListenerArg::LONG_NAME{"detach-listener"};
const std::string DetachListenerArg::HELP_TEXT{R"(
Don't attach a listener. Used for debugging purposes.
)"};

const std::string IntervalArg::NAME{"interval"};
const std::string IntervalArg::SHORT_NAME{};
const std::string IntervalArg::LONG_NAME{"interval"};
const std::string IntervalArg::HELP_TEXT{R"(
Measurement interval in seconds.
)"};

}
Loading

0 comments on commit 9e454bd

Please sign in to comment.