Ejemplo n.º 1
0
CSeq_data::CSeq_data(const vector< char >& value, E_Choice index)
{
    // Does value have to be validated
    // create seq type data holder
    switch (index) {
    case e_Iupacna:
    case e_Iupacaa:
    case e_Ncbieaa:
    {
        string s;
        s.assign (&value[0], value.size());
        DoConstruct (s, index);
        break;
    }
    case e_Ncbi2na:
    case e_Ncbi4na:
    case e_Ncbi8na:
    case e_Ncbipna:
    case e_Ncbi8aa:
    case e_Ncbipaa:
    case e_Ncbistdaa:
        DoConstruct (value, index);
        break;

    default:
        // throw error
        NCBI_THROW (CException, eUnknown,
            "CSeq_data constructor: Invalid E_Choice index");
    }
}
Ejemplo n.º 2
0
BEGIN_NCBI_SCOPE

BEGIN_objects_SCOPE // namespace ncbi::objects::

// constructor
CSeq_data::CSeq_data(const string& value, E_Choice index)
{


    // Does value have to be validated
    // create seq type data holder
    switch (index) {
    case e_Iupacna:
    case e_Iupacaa:
    case e_Ncbieaa:
        DoConstruct (value, index);
        break;

    case e_Ncbi2na:
    case e_Ncbi4na:
    case e_Ncbi8na:
    case e_Ncbipna:
    case e_Ncbi8aa:
    case e_Ncbipaa:
    case e_Ncbistdaa:
    {
        vector< char > v;
        v.resize (value.size());
        memcpy(&v[0], value.c_str(), value.size());
        DoConstruct (v, index);
        break;
    }
    default:
        // throw error
        NCBI_THROW (CException, eUnknown,
            "CSeq_data constructor: Invalid E_Choice index");
    }
}
/*
 * Actual Constructor
 */
t_damper_error_code CDefCorDamper::Construct()
{
   return DoConstruct(DEFCOR_DAMPERS_NUM);
}
/*
 * Actual Constructor
 */
t_damper_error_code CNoiseFilterDamper::Construct()
{
   return DoConstruct(1);
}
Ejemplo n.º 5
0
/*
 * Actual Constructor
 */
t_damper_error_code CNoiseModelDamper::Construct()
{
   return DoConstruct();
}
/*
 * Actual Constructor
 */
t_damper_error_code CScorpioDamper::Construct()
{
   return DoConstruct();
}
void SFTPAttribute::Assign(SFTPAttribute_t attr)
{
    DoClear();
    m_attributes = attr;
    DoConstruct();
}
Ejemplo n.º 8
0
/*
 * Actual Constructor
 */
t_damper_error_code CSharpeningDamperLR::Construct()
{
   return DoConstruct(SHARPENING_DAMPERS_LR_NUM);
}