NCBI C++ ToolKit
validatorp.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: validatorp.hpp 94734 2021-09-04 16:52:30Z stakhovv $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *`
26  * Author: Jonathan Kans, Clifford Clausen, Aaron Ucko......
27  *
28  * File Description:
29  * Privae classes and definition for the validator
30  * .......
31  *
32  */
33 
34 #ifndef VALIDATOR___VALIDATORP__HPP
35 #define VALIDATOR___VALIDATORP__HPP
36 
37 #include <corelib/ncbistd.hpp>
39 
40 #include <objmgr/scope.hpp>
44 
47 
48 
49 BEGIN_SCOPE(validator)
50 
51 
52 // =========================== for handling PCR primer subtypes on BioSource ==
53 
54 class CPCRSet
55 {
56 public:
57  CPCRSet(size_t pos);
58  virtual ~CPCRSet();
59 
60  string GetFwdName() const { return m_FwdName; }
61  string GetFwdSeq() const { return m_FwdSeq; }
62  string GetRevName() const { return m_RevName; }
63  string GetRevSeq() const { return m_RevSeq; }
64  size_t GetOrigPos() const { return m_OrigPos; }
65 
66  void SetFwdName(string fwd_name) { m_FwdName = fwd_name; }
67  void SetFwdSeq(string fwd_seq) { m_FwdSeq = fwd_seq; }
68  void SetRevName(string rev_name) { m_RevName = rev_name; }
69  void SetRevSeq(string rev_seq) { m_RevSeq = rev_seq; }
70 
71 private:
72  string m_FwdName;
73  string m_FwdSeq;
74  string m_RevName;
75  string m_RevSeq;
76  size_t m_OrigPos;
77 };
78 
80 {
81 public:
82  CPCRSetList();
83  ~CPCRSetList();
84 
85  void AddFwdName(string name);
86  void AddRevName(string name);
87  void AddFwdSeq(string name);
88  void AddRevSeq(string name);
89 
90  bool AreSetsUnique();
91  static bool AreSetsUnique(const CPCRReactionSet& primers);
92 
93 private:
94  vector <CPCRSet *> m_SetList;
95 };
96 
97 
98 
99 END_SCOPE(validator)
102 
103 #endif /* VALIDATOR___VALIDATORP__HPP */
User-defined methods of the data storage class.
CPCRReactionSet –.
void AddFwdName(string name)
vector< CPCRSet * > m_SetList
Definition: validatorp.hpp:94
void AddRevName(string name)
void AddFwdSeq(string name)
void AddRevSeq(string name)
void SetRevName(string rev_name)
Definition: validatorp.hpp:68
size_t GetOrigPos() const
Definition: validatorp.hpp:64
string m_RevName
Definition: validatorp.hpp:74
string GetRevName() const
Definition: validatorp.hpp:62
void SetFwdName(string fwd_name)
Definition: validatorp.hpp:66
string GetFwdName() const
Definition: validatorp.hpp:60
string m_RevSeq
Definition: validatorp.hpp:75
void SetFwdSeq(string fwd_seq)
Definition: validatorp.hpp:67
size_t m_OrigPos
Definition: validatorp.hpp:76
string GetFwdSeq() const
Definition: validatorp.hpp:61
string GetRevSeq() const
Definition: validatorp.hpp:63
string m_FwdName
Definition: validatorp.hpp:72
void SetRevSeq(string rev_seq)
Definition: validatorp.hpp:69
string m_FwdSeq
Definition: validatorp.hpp:73
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
Modified on Fri Mar 01 10:04:59 2024 by modify_doxy.py rev. 669887