Skip to content
Snippets Groups Projects
Commit 68f6be1f authored by fxk8y's avatar fxk8y :spider:
Browse files

ST: Choose a better name before roll-out :zany_face:

parent 1d09e964
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,9 @@ namespace SiliconTorch {
SiliconTorch::SiliconTorch() {
ESP_LOGI(TAG, "My deviceTopic[ %s ]", getDeviceTopic().c_str());
ESP_LOGI(TAG, "My deviceTopic[ %s ]", getDeviceTopic("foo", "bar", "baz", "spam", "eggs").c_str());
ESP_LOGI(TAG, "My serviceTopic[ %s ]", getServiceTopic("1337", "4242", "foo", "bar", "baz", "spam", "eggs", "4242", "1337").c_str());
ESP_LOGI(TAG, "My deviceTopic[ %s ]", deviceTopic().c_str());
ESP_LOGI(TAG, "My deviceTopic[ %s ]", deviceTopic("foo", "bar", "baz", "spam", "eggs").c_str());
ESP_LOGI(TAG, "My serviceTopic[ %s ]", serviceTopic("1337", "4242", "foo", "bar", "baz", "spam", "eggs", "4242", "1337").c_str());
//serviceManager = new SiliconTorch::ServiceManager::ServiceManager();
......
......@@ -41,7 +41,7 @@ namespace SpiderLib {
str HasMQTT::getDeviceTopic() const {
str HasMQTT::deviceTopic() const {
// TODO: adapt this when qthing changes from macro to real string
str topic = DEVICE_NAMESPACE;
topic.pop_back(); // erase the last `/` from qthing
......@@ -49,16 +49,16 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0) const {
str topic = deviceTopic();
topic += slash + subt0;
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -66,8 +66,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -76,8 +76,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -87,8 +87,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -99,8 +99,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -112,8 +112,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -126,8 +126,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -141,8 +141,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -157,8 +157,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const {
str topic = getDeviceTopic();
str HasMQTT::deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const {
str topic = deviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -176,21 +176,21 @@ namespace SpiderLib {
str HasMQTT::getServiceTopic() const {
str HasMQTT::serviceTopic() const {
str topic = "service";
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0) const {
str topic = serviceTopic();
topic += slash + subt0;
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -198,8 +198,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -208,8 +208,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -219,8 +219,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -231,8 +231,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -244,8 +244,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -258,8 +258,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -273,8 +273,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......@@ -289,8 +289,8 @@ namespace SpiderLib {
return topic;
}
str HasMQTT::getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const {
str topic = getServiceTopic();
str HasMQTT::serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const {
str topic = serviceTopic();
topic += slash + subt0;
topic += slash + subt1;
......
......@@ -39,29 +39,29 @@ namespace SpiderLib {
// specializing on args count manually to avoid badly-designed va_args API 😞
str getDeviceTopic() const;
str getDeviceTopic(const str& subt0) const;
str getDeviceTopic(const str& subt0, const str& subt1) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const;
str getDeviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const;
str getServiceTopic() const;
str getServiceTopic(const str& subt0) const;
str getServiceTopic(const str& subt0, const str& subt1) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const;
str getServiceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const;
str deviceTopic() const;
str deviceTopic(const str& subt0) const;
str deviceTopic(const str& subt0, const str& subt1) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const;
str deviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const;
str serviceTopic() const;
str serviceTopic(const str& subt0) const;
str serviceTopic(const str& subt0, const str& subt1) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8) const;
str serviceTopic(const str& subt0, const str& subt1, const str& subt2, const str& subt3, const str& subt4, const str& subt5, const str& subt6, const str& subt7, const str& subt8, const str& subt9) const;
// specialization end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment