OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
block_modifiers.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2011 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 
20 #ifndef OST_MM_BLOCK_MODIFIERS
21 #define OST_MM_BLOCK_MODIFIERS
22 
25 #include <boost/shared_ptr.hpp>
26 #include <ost/mol/xcs_editor.hh>
29 
30 namespace ost{ namespace mol{ namespace mm{
31 
33 class TerminiConstructor;
35 
36 typedef boost::shared_ptr<HydrogenConstructor> HydrogenConstructorPtr;
37 typedef boost::shared_ptr<TerminiConstructor> TerminiConstructorPtr;
38 typedef boost::shared_ptr<BlockModifier> BlockModifierPtr;
39 
40 typedef enum {
44 
46 public:
48  virtual ~HydrogenConstructor() { }
49  virtual void ApplyOnBuildingBlock(BuildingBlockPtr p) = 0;
51  virtual void OnSave(ost::io::BinaryDataSink& ds) = 0;
53 };
54 
56 public:
58  virtual ~TerminiConstructor() { }
59  virtual void ApplyOnBuildingBlock(BuildingBlockPtr p) = 0;
61  virtual void OnSave(ost::io::BinaryDataSink& ds) = 0;
63 };
64 
66 public:
68  virtual ~BlockModifier() { }
69  virtual void ApplyOnBuildingBlock(BuildingBlockPtr p) = 0;
71  virtual void OnSave(ost::io::BinaryDataSink& ds) = 0;
73 };
74 
75 
76 }}} //ns
77 
78 #endif
virtual void ApplyOnResidue(ost::mol::ResidueHandle &res, ost::mol::XCSEditor &ed)=0
boost::shared_ptr< HydrogenConstructor > HydrogenConstructorPtr
virtual BlockModifierType GetBlockModifierType()=0
virtual void ApplyOnResidue(ost::mol::ResidueHandle &res, ost::mol::XCSEditor &ed)=0
boost::shared_ptr< BlockModifier > BlockModifierPtr
virtual void OnSave(ost::io::BinaryDataSink &ds)=0
virtual void ApplyOnBuildingBlock(BuildingBlockPtr p)=0
virtual void OnSave(ost::io::BinaryDataSink &ds)=0
virtual void ApplyOnBuildingBlock(BuildingBlockPtr p)=0
virtual BlockModifierType GetBlockModifierType()=0
external coordinate system editor
Definition: xcs_editor.hh:36
virtual void OnSave(ost::io::BinaryDataSink &ds)=0
virtual void ApplyOnBuildingBlock(BuildingBlockPtr p)=0
virtual BlockModifierType GetBlockModifierType()=0
boost::shared_ptr< TerminiConstructor > TerminiConstructorPtr
virtual void ApplyOnResidue(ost::mol::ResidueHandle &res, ost::mol::XCSEditor &ed)=0
boost::shared_ptr< BuildingBlock > BuildingBlockPtr