33 const char SERIALIZE_TYPE_MARK[] =
"ot2:string";
38 const std::string& value_) :
54 return SERIALIZE_TYPE_MARK;
61 bool TestMarkString::doIsEqual(
62 const TestMark& other_,
63 long double precision_)
const {
64 return value ==
static_cast<const TestMarkString*
>(&other_)->value;
67 bool TestMarkString::doIsEqualValue(
68 const TestMark& other_,
69 long double precision_)
const {
70 return doIsEqual(other_, precision_);
73 void TestMarkString::doDiffArray(
75 std::vector<LinearizedRecord>& array_)
const
80 void TestMarkString::doLinearizedMark(
82 const std::string& label_,
83 std::vector<LinearizedRecord>& array_)
const {
84 array_.push_back({level_,
this, label_});
87 void TestMarkString::doPrintOpen(
89 const std::string& prefix_)
const {
90 os_ << prefix_ <<
'"' << value <<
"\"\n";
93 void TestMarkString::doPrintClose(
95 const std::string& prefix_)
const {
99 void TestMarkString::doSerializeMark(
100 TestMarkOut& serializer_)
const {
101 serializer_.writeTypeMark(SERIALIZE_TYPE_MARK);
102 serializer_.writeString(value);
105 void TestMarkString::doDeserializeMark(
106 TestMarkFactory& factory_,
107 TestMarkIn& deserializer_) {
108 value = deserializer_.readString();