Go to the documentation of this file.
10 Script::Script(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props)
15 properties.scriptName =
"<script>";
18 setInputMapRefs(&inputs);
19 setOutputMapRefs(&outputs);
33 std::vector<std::uint8_t>
data{script.begin(), script.end()};
Properties & properties
Underlying properties.
ProcessorType getProcessor() const
std::string u8string() const
Get path in utf-8.
AssetManager assetManager
dai::Path getScriptPath() const
Get filesystem path from where script was loaded.
constexpr auto data(C &c) -> decltype(c.data())
void setScriptPath(const dai::Path &path, const std::string &name="")
void setScript(const std::string &script, const std::string &name="")
std::shared_ptr< dai::Asset > set(Asset asset)
Base Properties structure.
void setProcessor(ProcessorType type)
std::string getScriptName() const
Get the script name in utf-8.
Represents paths on a filesystem; accepts utf-8, Windows utf-16 wchar_t, or std::filesystem::path.
Script(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19