SField::SField (SerializedTypeID tid, int fv) : fieldCode (FIELD_CODE (tid, fv)), fieldType (tid), fieldValue (fv),
    fieldMeta (sMD_Default), fieldNum (++num), signingField (true), jsonName (nullptr)
{
    // call with the map mutex
    fieldName = beast::lexicalCast <std::string> (tid) + "/" +
                beast::lexicalCast <std::string> (fv);
    codeToField[fieldCode] = this;
    rawJsonName = getName ();
    jsonName = Json::StaticString (rawJsonName.c_str ());
    assert ((fv != 1) || ((tid != STI_ARRAY) && (tid != STI_OBJECT)));
}
Beispiel #2
0
SField::SField(SerializedTypeID tid, int fv) : fieldCode(FIELD_CODE(tid, fv)), fieldType(tid), fieldValue(fv)
{ // call with the map mutex
	fieldName = lexical_cast_i(tid) + "/" + lexical_cast_i(fv);
	codeToField[fieldCode] = this;
	assert((fv != 1) || ((tid != STI_ARRAY) && (tid!=STI_OBJECT)));
}