ResolverSchema.hh

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one
00003  * or more contributor license agreements.  See the NOTICE file
00004  * distributed with this work for additional information
00005  * regarding copyright ownership.  The ASF licenses this file
00006  * to you under the Apache License, Version 2.0 (the
00007  * "License"); you may not use this file except in compliance
00008  * with the License.  You may obtain a copy of the License at
00009  *
00010  *     http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef avro_ResolverSchema_hh__
00020 #define avro_ResolverSchema_hh__
00021 
00022 #include <boost/noncopyable.hpp>
00023 #include <boost/shared_ptr.hpp>
00024 #include <stdint.h>
00025 #include "Boost.hh"
00026 #include "Reader.hh"
00027 
00030 
00031 namespace avro {
00032     
00033 class ValidSchema;
00034 class Layout;
00035 class Resolver;
00036 
00037 class ResolverSchema {
00038 
00039   public:
00040 
00041     ResolverSchema(const ValidSchema &writer, const ValidSchema &reader, const Layout &readerLayout);
00042 
00043   private:
00044 
00045     friend class ResolvingReader;
00046 
00047     void parse(Reader &reader, uint8_t *address); 
00048 
00049     boost::shared_ptr<Resolver> resolver_;
00050 
00051 };
00052 
00053 } // namespace avro
00054 
00055 #endif