-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Pelanek
committed
Jun 13, 2024
1 parent
6a756e6
commit 455a1b2
Showing
4 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* @file | ||
* @author Daniel Pelanek <xpeland00@vutbr.cz> | ||
* @brief | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#include <telemetry.hpp> | ||
#include <appFs.hpp> | ||
|
||
class IOwnTelemetryFiles { | ||
public: | ||
void configTelemetry(const std::shared_ptr<telemetry::Directory>& rootDir) { | ||
const telemetry::FileOps fileOps | ||
= {nullptr, nullptr}; | ||
|
||
auto someFile = rootDir->addFile("stats", fileOps); | ||
|
||
|
||
} | ||
|
||
private: | ||
telemetry::Holder m_telemetryHolder; | ||
} | ||
|
||
int main() { | ||
// Same as basic example | ||
std::shared_ptr<telemetry::Directory> telemetryRootNode; | ||
telemetryRootNode = telemetry::Directory::create(); | ||
|
||
std::string fusePath = "fusedir"; | ||
|
||
telemetry::appFs::AppFsFuse fuse = telemetry::appFs::AppFsFuse(telemetryRootNode, fusePath); | ||
fuse.start(); | ||
|
||
const IOwnTelemetryFiles object; | ||
|
||
object.configTelemetry(telemetryRootNode); | ||
} | ||
|