/usr/include/libGenome-1.3/libGenome/gnSourceQualifier.h is in libgenome-1.3-dev 1.3.1-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | /////////////////////////////////////////////////////////////////////////////
// File: gnSourceQualifier.h
// Purpose: Source Qualifier class
// Description: Provides an interface for gnBaseQualifier in files.
// Changes:
// Version: libGenome 0.5.1
// Author: Aaron Darling
// Modified by:
// Copyright: (c) Aaron Darling
// Licenses: See COPYING file for details
/////////////////////////////////////////////////////////////////////////////
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef _gnSourceQualifier_h_
#define _gnSourceQualifier_h_
#include "libGenome/gnDefs.h"
#include <string>
#include "libGenome/gnBaseQualifier.h"
#include "libGenome/gnBaseSource.h"
#include <utility>
namespace genome {
/**
* gnSourceQualifier is used to store a sequence qualifier which resides
* in another source. They are created by gnGBKSource and other sources
* and placed into a gnFeature.
*/
class GNDLLEXPORT gnSourceQualifier : public gnBaseQualifier
{
public:
/**
* Empty constructor.
*/
gnSourceQualifier();
/**
* Constructor, records the location and name of the qualifier in the source.
* @param source The source which contains the qualifier.
* @param name The name of the qualifier.
* @param begin The offset into the source where the qualifier starts.
* @param length The length of the qualifier.
*/
gnSourceQualifier( gnBaseSource* source, std::string& name, uint32 begin, uint32 length );
/**
* Copy constructor.
* @param s The gnSourceQualifier to copy.
*/
gnSourceQualifier( const gnSourceQualifier& s );
/**
* Destructor, frees memory.
*/
~gnSourceQualifier();
gnSourceQualifier* Clone() const;
std::string GetName() const;
std::string GetValue() const;
uint32 GetNameLength() const;
uint32 GetValueLength() const;
/**
* Get the qualifier's start position within the source.
* @return The qualifier start position.
*/
uint32 GetValueStart() const;
/**
* Get the qualifier's start position and length within the source.
* @return The qualifier start position and length as a pair.
*/
std::pair<uint32, uint32> GetValueLoc() const;
/**
* Set the qualifier's start position within the source.
* @param start The qualifier start position.
*/
void SetValueStart(const uint32 start);
/**
* Get the qualifier's length within the source.
* @param length The qualifier length.
*/
void SetValueLength(const uint32 length);
/**
* Set the qualifier's start position and length within the source.
* @param startLen The qualifier start position and length as a pair.
*/
void SetValueLoc(const std::pair<uint32, uint32> startLen);
private:
std::string m_name;
uint32 m_start, m_length;
gnBaseSource *m_source;
}; //class gnSourceQualifier
inline
gnSourceQualifier* gnSourceQualifier::Clone() const{
return new gnSourceQualifier(*this);
}
inline
std::string gnSourceQualifier::GetName() const{
return m_name;
}
inline
uint32 gnSourceQualifier::GetNameLength() const{
return m_name.length();
}
inline
uint32 gnSourceQualifier::GetValueStart() const{
return m_start;
}
inline
uint32 gnSourceQualifier::GetValueLength() const{
return m_length;
}
inline
std::pair<uint32, uint32> gnSourceQualifier::GetValueLoc() const{
std::pair<uint32, uint32> p;
p.first = m_start;
p.second = m_length;
return p;
}
inline
void gnSourceQualifier::SetValueStart(const uint32 start){
m_start = start;
}
inline
void gnSourceQualifier::SetValueLength(const uint32 length){
m_length = length;
}
inline
void gnSourceQualifier::SetValueLoc(const std::pair<uint32, uint32> startLen){
m_start = startLen.first;
m_length = startLen.second;
}
} // end namespace genome
#endif
// _gnSourceQualifier_h_
|