| 3628 | |
| 3629 | |
| 3630 | Ref<Component> BinaryView::CreateComponentWithName(std::string name, std::string parentGUID) |
| 3631 | { |
| 3632 | BNComponent* bnComponent; |
| 3633 | if (!parentGUID.empty()) |
| 3634 | bnComponent = BNCreateComponentWithParentAndName(m_object, parentGUID.c_str(), name.c_str()); |
| 3635 | else |
| 3636 | bnComponent = BNCreateComponentWithName(m_object, name.c_str()); |
| 3637 | |
| 3638 | return new Component(bnComponent); |
| 3639 | } |
| 3640 | |
| 3641 | |
| 3642 | Ref<Component> BinaryView::CreateComponentWithName(std::string name, Ref<Component> parent) |