forwards.h
Go to the documentation of this file.
00001 //=================================================================================================
00002 // Copyright (c) 2011, Johannes Meyer, TU Darmstadt
00003 // All rights reserved.
00004 
00005 // Redistribution and use in source and binary forms, with or without
00006 // modification, are permitted provided that the following conditions are met:
00007 //     * Redistributions of source code must retain the above copyright
00008 //       notice, this list of conditions and the following disclaimer.
00009 //     * Redistributions in binary form must reproduce the above copyright
00010 //       notice, this list of conditions and the following disclaimer in the
00011 //       documentation and/or other materials provided with the distribution.
00012 //     * Neither the name of the Flight Systems and Automatic Control group,
00013 //       TU Darmstadt, nor the names of its contributors may be used to
00014 //       endorse or promote products derived from this software without
00015 //       specific prior written permission.
00016 
00017 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00018 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00019 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00020 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
00021 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00022 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00023 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00024 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00025 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00026 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00027 //=================================================================================================
00028 
00029 #ifndef CPP_INTROSPECTION_FORWARDS_H
00030 #define CPP_INTROSPECTION_FORWARDS_H
00031 
00032 #include <boost/shared_ptr.hpp>
00033 #include <boost/any.hpp>
00034 #include <map>
00035 #include <vector>
00036 #include <string>
00037 
00038 namespace cpp_introspection {
00039 
00040   class Package;
00041   class Message;
00042   class Field;
00043   class Type;
00044   class AccessorBase;
00045 
00046   typedef boost::shared_ptr<Package const> PackagePtr;
00047   typedef boost::weak_ptr<Package const> PackageWPtr;
00048   typedef boost::shared_ptr<Message const> MessagePtr;
00049   typedef boost::weak_ptr<Message const> MessageWPtr;
00050   typedef boost::shared_ptr<Field const> FieldPtr;
00051   typedef boost::weak_ptr<Field const> FieldWPtr;
00052   typedef boost::shared_ptr<Type const> TypePtr;
00053   typedef boost::weak_ptr<Type const> TypeWPtr;
00054 
00055   typedef std::vector<PackagePtr> V_Package;
00056   typedef std::vector<MessagePtr> V_Message;
00057   typedef std::vector<FieldPtr> V_Field;
00058   typedef std::vector<const char *> V_FieldName;
00059   typedef std::vector<TypePtr> V_Type;
00060 
00061   typedef std::map<std::string,PackageWPtr> M_Package;
00062   typedef std::map<std::string,MessageWPtr> M_Message;
00063   typedef std::map<std::string,FieldWPtr> M_Field;
00064   typedef std::map<std::string,TypeWPtr> M_Type;
00065 
00066   struct CompareTypeInfo { bool operator()(const std::type_info *t1, const std::type_info *t2) const { return (*t1).before(*t2); } };
00067   typedef std::map<const std::type_info *,MessageWPtr,CompareTypeInfo> M_TypeInfo_Message;
00068 
00069   typedef boost::shared_ptr<void> VoidPtr;
00070   typedef boost::weak_ptr<void> VoidWPtr;
00071   typedef boost::shared_ptr<void const> VoidConstPtr;
00072   typedef boost::weak_ptr<void const> VoidConstWPtr;
00073 
00074   typedef std::vector<std::string> V_string;
00075 
00076 } // namespace cpp_introspection
00077 
00078 #endif // CPP_INTROSPECTION_FORWARDS_H


cpp_introspection
Author(s): Johannes Meyer
autogenerated on Thu Feb 11 2016 22:46:54