Develop Biology
The language of life
RegisterPlasmid.cpp
Go to the documentation of this file.
1/*
2 * This file is a part of the Biology project by eons LLC.
3 * Biology (aka Develop Biology) is a framework for approaching software
4 * development from a natural sciences perspective.
5 *
6 * Copyright (C) 2021 Séon O'Shannon & eons LLC
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
24#include "bio/genetic/Plasmid.h"
25
26namespace bio {
27namespace genetic {
28
30 :
31 molecular::Protein(chemical::PeriodicTable::Instance().GetNameFromType(*this))
32{
33 mc_plasmidSite = Define("Plasmid Binding Site");
34}
35
37{
38
39}
40
42{
43 Code ret = code::BadArgument1();
44 Plasmid* boundPlasmid = RotateTo< Plasmid* >(mc_plasmidSite);
45 BIO_SANITIZE(boundPlasmid, ,
46 return ret)
47 PlasmidPerspective::Instance().AssociateType(
48 boundPlasmid->GetId(),
49 boundPlasmid->AsWave());
50 ret = code::Success();
52 return ret;
53}
54
55} //genetic namespace
56} //bio namespace
#define BIO_SANITIZE(test, success, failure)
StandardDimension mc_plasmidSite
virtual Surface * RotateTo(StandardDimension surfaceId)
Definition: Molecule.cpp:48
StandardDimension Define(Name varName)
Definition: Molecule.h:135
virtual physical::Waves ReleaseAll(BondType bondType=bond_type::Temporary())
Definition: Surface.cpp:207
virtual Wave * AsWave()
Definition: Class.h:99
Code BadArgument1()
Code Success()
Definition: Cell.h:31