00001 //------------------------------------------------------------------------------ 00002 // This file is part of the OpenStructure project <www.openstructure.org> 00003 // 00004 // Copyright (C) 2008-2011 by the OpenStructure authors 00005 // 00006 // This library is free software; you can redistribute it and/or modify it under 00007 // the terms of the GNU Lesser General Public License as published by the Free 00008 // Software Foundation; either version 3.0 of the License, or (at your option) 00009 // any later version. 00010 // This library is distributed in the hope that it will be useful, but WITHOUT 00011 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00013 // details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this library; if not, write to the Free Software Foundation, Inc., 00017 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 //------------------------------------------------------------------------------ 00019 #ifndef OST_VIEW_TYPE_FW_HH 00020 #define OST_VIEW_TYPE_FW_HH 00021 00022 #include <boost/shared_ptr.hpp> 00023 #include <boost/weak_ptr.hpp> 00024 #include <vector> 00025 00026 namespace ost { namespace mol { 00027 class AtomView; 00028 class AtomViewData; 00029 typedef boost::shared_ptr<AtomViewData> AtomViewDataPtr; 00030 typedef boost::weak_ptr<AtomViewData> AtomViewDataWeakPtr; 00031 typedef std::vector<AtomView> AtomViewList; 00032 00033 class ResidueView; 00034 class ResidueViewData; 00035 typedef boost::shared_ptr<ResidueViewData> ResidueViewDataPtr; 00036 typedef boost::weak_ptr<ResidueViewData> ResidueViewDataWeakPtr; 00037 typedef std::vector<ResidueView> ResidueViewList; 00038 00039 class ChainView; 00040 class ChainViewData; 00041 typedef boost::shared_ptr<ChainViewData> ChainViewDataPtr; 00042 typedef boost::weak_ptr<ChainViewData> ChainViewDataWeakPtr; 00043 typedef std::vector<ChainView> ChainViewList; 00044 00045 class EntityView; 00046 class EntityViewData; 00047 typedef boost::shared_ptr<EntityViewData> EntityViewDataPtr; 00048 typedef boost::weak_ptr<EntityViewData> EntityViewDataWeakPtr; 00049 typedef std::vector<EntityView> EntityViewList; 00050 00051 class QueryViewWrapper; 00052 typedef std::vector<QueryViewWrapper> QueryViewWrapperList; 00053 00055 struct ViewAddFlag { 00056 typedef enum { 00058 INCLUDE_ATOMS =1, 00060 INCLUDE_RESIDUES =2, 00062 INCLUDE_CHAINS =4, 00064 INCLUDE_ALL =INCLUDE_ATOMS|INCLUDE_RESIDUES|INCLUDE_CHAINS, 00065 00068 CHECK_DUPLICATES =8 00069 } Type; 00070 }; 00071 typedef int ViewAddFlags; 00072 00073 }} // ns 00074 00075 #endif 00076