avro::ValidSchema Class Reference

A ValidSchema is basically a non-mutable Schema that has passed some minumum of sanity checks. More...

#include <ValidSchema.hh>

List of all members.

Public Member Functions

 ValidSchema (const Schema &schema)
 ValidSchema (const ValidSchema &schema)
void setSchema (const Schema &schema)
const NodePtr & root () const
void toJson (std::ostream &os) const
void toFlatList (std::ostream &os) const

Protected Member Functions

bool validate (const NodePtr &node, SymbolMap &symbolMap)

Protected Attributes

NodePtr root_

Detailed Description

A ValidSchema is basically a non-mutable Schema that has passed some minumum of sanity checks.

Once valididated, any Schema that is part of this ValidSchema is considered locked, and cannot be modified (an attempt to modify a locked Schema will throw). Also, as it is validated, any recursive duplications of schemas are replaced with symbolic links to the original.

Once a Schema is converted to a valid schema it can be used in validating parsers/serializers, converted to a json schema, etc.


The documentation for this class was generated from the following file:
Generated on Thu Sep 2 18:40:54 2010 for Avro C++ by  doxygen 1.6.3