2 #include <samchon/API.hpp> 4 #include <samchon/protocol/Entity.hpp> 7 #include <samchon/ByteArray.hpp> 8 #include <samchon/WeakString.hpp> 91 std::shared_ptr<library::XML>
xml;
121 InvokeParameter(
const std::string &,
const std::string &,
const std::string &);
156 template <
typename T>
162 construct_by_varadic_template(val);
180 virtual void construct(std::shared_ptr<library::XML>)
override;
182 auto reservedByteArraySize()
const->size_t;
186 template <
typename T>
187 void construct_by_varadic_template(
const T &val)
189 this->type =
"number";
191 std::stringstream sstream;
194 this->str = move(sstream.str());
196 template<>
void construct_by_varadic_template(
const std::string &str)
198 this->type =
"string";
201 template<>
void construct_by_varadic_template(
const WeakString &wstr)
203 this->type =
"string";
204 this->str = wstr.
str();
206 template<>
void construct_by_varadic_template(
const ByteArray &byteArray)
208 this->type =
"ByteArray";
209 this->byteArray = byteArray;
212 template<>
void construct_by_varadic_template(
const std::shared_ptr<library::XML> &xml)
222 virtual auto key()
const->std::string
override;
227 auto getName()
const->std::string;
232 auto getType()
const->std::string;
241 std::stringstream sstream;
242 sstream << this->str;
249 template<>
auto getValue()
const -> std::string
253 template<>
auto getValue()
const ->
WeakString 257 template<>
auto getValue()
const -> std::shared_ptr<library::XML>
261 template<>
auto getValue()
const ->
ByteArray 270 auto getValueAsXML()
const->std::shared_ptr<
library::XML>;
277 template <
typename T>
auto referValue()
const ->
const T&;
278 template<>
auto referValue()
const ->
const std::string&
282 template<>
auto referValue()
const ->
const ByteArray&
292 template <
typename T>
auto moveValue()->T;
293 template<>
auto moveValue() -> std::string
299 return move(byteArray);
306 virtual auto TAG()
const->std::string
override;
308 virtual auto toXML()
const->std::shared_ptr<
library::XML>
override;
313 auto toSQL()
const->std::string;
An entity, a standard data class.
std::string str
A string value if the type is "string" or "number".
std::string name
A name can represent the parameter.
ByteArray byteArray
A binary value if the type is "ByteArray".
auto str() const -> std::string
Get the string content.
InvokeParameter(const std::string &name, const T &val)
Construct with its name and a value.
std::shared_ptr< library::XML > xml
An XML object if the type is "XML".
Standard message of network I/O.
XML is a class representing xml object.
std::string type
Type of the parameter.
A parameter of an Invoke.
auto getValue() const -> T
Get value.
Top level namespace of products built from samchon.
A string class only references characeters, reference only.