Files
SibIntel1/Plugins/EasyXMLParser/Source/EasyXMLParser/Private/EasyXMLAttribute.cpp
T
2023-07-14 21:08:34 +05:00

13 lines
489 B
C++

// Copyright 2019 ayumax. All Rights Reserved.
#include "EasyXMLAttribute.h"
#include "EasyXMLElement.h"
UEasyXMLAttribute* UEasyXMLAttribute::CreateAttribute(UEasyXMLElement* ParentObject, FString _Name, FString _Value)
{
auto newAttribute = NewObject<UEasyXMLAttribute>(ParentObject == nullptr ? (UObject*)GetTransientPackage() : ParentObject);
newAttribute->Parent = ParentObject;
newAttribute->Name = _Name;
newAttribute->Value = _Value.TrimStartAndEnd();
return newAttribute;
}