20 #include <ripple/basics/contract.h>
21 #include <ripple/protocol/STAccount.h>
22 #include <ripple/protocol/STAmount.h>
23 #include <ripple/protocol/STArray.h>
24 #include <ripple/protocol/STBase.h>
25 #include <ripple/protocol/STBitString.h>
26 #include <ripple/protocol/STBlob.h>
27 #include <ripple/protocol/STInteger.h>
28 #include <ripple/protocol/STObject.h>
29 #include <ripple/protocol/STPathSet.h>
30 #include <ripple/protocol/STVector256.h>
31 #include <ripple/protocol/impl/STVar.h>
48 if (other.
p_ !=
nullptr)
101 :
STVar(name.fieldType, name)
113 Throw<std::runtime_error> (
"Maximum nesting depth of STVar exceeded");
117 case STI_UINT8: construct<STUInt8>(sit, name);
return;
118 case STI_UINT16: construct<STUInt16>(sit, name);
return;
119 case STI_UINT32: construct<STUInt32>(sit, name);
return;
120 case STI_UINT64: construct<STUInt64>(sit, name);
return;
121 case STI_AMOUNT: construct<STAmount>(sit, name);
return;
122 case STI_HASH128: construct<STHash128>(sit, name);
return;
123 case STI_HASH160: construct<STHash160>(sit, name);
return;
124 case STI_HASH256: construct<STHash256>(sit, name);
return;
125 case STI_VECTOR256: construct<STVector256>(sit, name);
return;
126 case STI_VL: construct<STBlob>(sit, name);
return;
127 case STI_ACCOUNT: construct<STAccount>(sit, name);
return;
128 case STI_PATHSET: construct<STPathSet>(sit, name);
return;
129 case STI_OBJECT: construct<STObject>(sit, name, depth);
return;
130 case STI_ARRAY: construct<STArray>(sit, name, depth);
return;
132 Throw<std::runtime_error> (
"Unknown object type");
142 case STI_UINT8: construct<STUInt8>(name);
return;
143 case STI_UINT16: construct<STUInt16>(name);
return;
144 case STI_UINT32: construct<STUInt32>(name);
return;
145 case STI_UINT64: construct<STUInt64>(name);
return;
146 case STI_AMOUNT: construct<STAmount>(name);
return;
147 case STI_HASH128: construct<STHash128>(name);
return;
148 case STI_HASH160: construct<STHash160>(name);
return;
149 case STI_HASH256: construct<STHash256>(name);
return;
151 case STI_VL: construct<STBlob>(name);
return;
152 case STI_ACCOUNT: construct<STAccount>(name);
return;
153 case STI_PATHSET: construct<STPathSet>(name);
return;
154 case STI_OBJECT: construct<STObject>(name);
return;
155 case STI_ARRAY: construct<STArray>(name);
return;
157 Throw<std::runtime_error> (
"Unknown object type");