1 #include <samchon/library/FTInstance.hpp> 3 #include <samchon/library/XML.hpp> 11 auto FTInstance::TAG() const ->
string {
return "file"; }
18 void FTInstance::construct(shared_ptr<XML> xml)
20 uid = xml->getProperty<
int>(
"uid");
21 name = xml->getProperty(
"name");
22 comment = xml->getProperty(
"comment");
27 return to_string(
uid);
49 xml->setProperty(
"uid",
uid);
50 xml->setProperty(
"name",
name);
51 xml->setProperty(
"comment",
comment);
auto getComment() const -> std::string
Get comment.
An entity, a standard data class.
auto getUID() const -> int
Get uid.
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the Entity.
std::string name
Name of the file.
auto getParent() const -> FTFolder *
Get parent folder.
Package of network protocol and libraries.
int uid
Key, an unique id of file.
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the Entity.
auto getName() const -> std::string
Get name.
XML is a class representing xml object.
std::string comment
Comment of the file.
Top level namespace of products built from samchon.
virtual auto key() const -> std::string
Get a key that can identify the Entity uniquely.
FTFolder * parent
Parent folder containing the instance.