38 auto configstring = ic.options().get<std::string>(
"global-config");
43 if (*isReady ==
true) {
48 ctx.outputs().make<
int>(
Output{
"TST",
"TEST", 0}) = 42;
57 "name=foo,type=sub,method=connect,address=tcp://localhost:5450,rateLogging=1",
58 {
"Out-of-band channel config"}},
59 ConfigParamSpec{
"global-config", VariantType::String, {
"A global config option for all processor specs"}},
72 auto configstring = ic.options().get<std::string>(
"global-config");
73 auto anotheroption = ic.options().get<std::string>(
"local-option");
74 auto aBoolean = ic.options().get<
bool>(
"a-boolean");
75 auto aBoolean2 = ic.options().get<
bool>(
"a-boolean2");
76 auto aBoolean3 = ic.options().get<
bool>(
"a-boolean3");
77 auto anInt = ic.options().get<
int>(
"an-int");
78 auto anInt2 = ic.options().get<
int>(
"an-int2");
79 auto anInt64 = ic.options().get<int64_t>(
"an-int64");
80 auto anInt64_2 = ic.options().get<int64_t>(
"an-int64-2");
81 auto aDouble = ic.options().get<
double>(
"a-double");
82 auto aDouble2 = ic.options().get<
double>(
"a-double2");
96 auto data = std::make_shared<int>(0);
97 ic.services().get<
CallbackService>().set<CallbackService::Id::EndOfStream>(
103 *
data = ctx.inputs().get<
int>(
"in");
108 ConfigParamSpec{
"global-config", VariantType::String, {
"A global config option for all processor specs"}},
109 ConfigParamSpec{
"local-option", VariantType::String, {
"Option only valid for this processor spec"}},
110 ConfigParamSpec{
"a-boolean", VariantType::Bool,
true, {
"A boolean which we pick by default"}},
111 ConfigParamSpec{
"a-boolean2", VariantType::Bool,
false, {
"Another boolean which we pick by default"}},
112 ConfigParamSpec{
"a-boolean3", VariantType::Bool,
false, {
"Another boolean which we pick from the outside options"}},
113 ConfigParamSpec{
"an-int", VariantType::Int, 10, {
"An int for which we pick up the default"}},
114 ConfigParamSpec{
"an-int2", VariantType::Int, 1, {
"An int for which we pick up the override"}},
115 ConfigParamSpec{
"an-int64", VariantType::Int64, 1ll, {
"An int64 for which we pick up the default"}},
116 ConfigParamSpec{
"an-int64-2", VariantType::Int64, 2ll, {
"An int64 for which we pick up the override"}},
117 ConfigParamSpec{
"a-double", VariantType::Double, 11., {
"A double for which we pick up the override"}},
118 ConfigParamSpec{
"a-double2", VariantType::Double, 12., {
"A double for which we pick up the override"}},