MCPcopy Create free account
hub / github.com/Raais/ImStudio / BaseObject

Method BaseObject

src/sources/ims_object.cpp:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "ims_object.h"
2
3ImStudio::BaseObject::BaseObject(int idgen_, std::string type_, int parent_id_) // for child widgets
4{
5 ischildwidget = true;
6 id = idgen_;
7 type = type_;
8 identifier = "child" + std::to_string(parent_id_) + "::" + type_ + std::to_string(idgen_);
9 value_s = type_ + std::to_string(idgen_);
10}
11
12ImStudio::Object::Object(int idgen_, std::string type_) : BaseObject()
13{

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected