UniSet 2.44.3
Класс uniset::ProcessTemplateRegistry

#include <ProcessTemplate.h>

Открытые члены

const ProcessTemplatefindByType (const std::string &type) const
const ProcessTemplatefindByPrefix (const std::string &name) const
std::string detectType (const std::string &name) const
void registerTemplate (const ProcessTemplate &tmpl)
const std::vector< ProcessTemplate > & templates () const

Открытые статические члены

static std::string expandPattern (const std::string &pattern, const std::string &name)

Подробное описание

Registry of built-in process templates.

Методы

◆ detectType()

std::string uniset::ProcessTemplateRegistry::detectType ( const std::string & name) const

Detect process type by name.

Аргументы
nameProcess name
Возвращает
Type string or empty if not detected

◆ expandPattern()

std::string uniset::ProcessTemplateRegistry::expandPattern ( const std::string & pattern,
const std::string & name )
static

Expand pattern by replacing ${name} with actual name.

Аргументы
patternPattern string with ${name} placeholder
nameProcess name to substitute
Возвращает
Expanded string

◆ findByPrefix()

const ProcessTemplate * uniset::ProcessTemplateRegistry::findByPrefix ( const std::string & name) const

Find template by process name using prefix matching.

Аргументы
nameProcess name (e.g. "SharedMemory1", "UNetExchange1")
Возвращает
Pointer to template or nullptr if no prefix matches

◆ findByType()

const ProcessTemplate * uniset::ProcessTemplateRegistry::findByType ( const std::string & type) const

Find template by type name.

Аргументы
typeType name (e.g. "SharedMemory", "UNetExchange")
Возвращает
Pointer to template or nullptr if not found

◆ registerTemplate()

void uniset::ProcessTemplateRegistry::registerTemplate ( const ProcessTemplate & tmpl)

Register custom template.

Аргументы
tmplTemplate to register

◆ templates()

const std::vector< ProcessTemplate > & uniset::ProcessTemplateRegistry::templates ( ) const
inline

Get all registered templates.