Improved human readable JSON-RPC error messages

This commit is contained in:
Vinnie Falco
2013-12-12 21:17:54 -05:00
parent ef7810bc95
commit 9d07ddeae1
22 changed files with 1682 additions and 839 deletions

View File

@@ -53,18 +53,18 @@ public:
//------------------------------------------------------------------------------
/** Defines the fields and their attributes within a SerializedObject.
Each subclass of SerializedObject will provide its own template
describing the available fields and their metadata attributes.
*/
class SOTemplate
{
public:
/** Create an empty template.
typedef std::unique_ptr <SOElement const> value_type;
typedef std::vector <value_type> list_type;
/** Create an empty template.
After creating the template, call @ref push_back with the
desired fields.
@see push_back
*/
SOTemplate ();
@@ -72,21 +72,19 @@ public:
// VFALCO NOTE Why do we even bother with the 'private' keyword if
// this function is present?
//
std::vector <SOElement const*> const& peek () const
list_type const& peek () const
{
return mTypes;
}
/** Add an element to the template.
*/
/** Add an element to the template. */
void push_back (SOElement const& r);
/** Retrieve the position of a named field.
*/
/** Retrieve the position of a named field. */
int getIndex (SField::ref) const;
private:
std::vector <SOElement const*> mTypes;
list_type mTypes;
std::vector <int> mIndex; // field num -> index
};