NCBI C++ ToolKit
Public Member Functions | Protected Types | Protected Member Functions
CSeqTest Class Reference

Search Toolkit Book for CSeqTest

Class CSeqTest provides a general API for performing a given test on. More...

#include <seqtest.hpp>

+ Inheritance diagram for CSeqTest:
+ Collaboration diagram for CSeqTest:

List of all members.

Public Member Functions

virtual bool CanTest (const CSerialObject &obj, const CSeqTestContext *ctx) const =0
 Test to see whether the given object *can* be used in this test.
virtual CRef
< objects::CSeq_test_result_set > 
RunTest (const CSerialObject &obj, const CSeqTestContext *ctx)=0
 RunTest() is called for each registered object.

Protected Types

typedef void(* TCdregionTester )(const objects::CSeq_id &, const CSeqTestContext *ctx, objects::CFeat_CI, objects::CSeq_test_result &)
 A fuction type that analyzes coding regions.

Protected Member Functions

CRef< objects::CSeq_test_result > x_SkeletalTestResult (const string &test_name)
 Create a Seq-test-result with some fields filled in, including a name for this test, which must be supplied as an argument.
CRef
< objects::CSeq_test_result_set > 
x_TestAllCdregions (const CSerialObject &obj, const CSeqTestContext *ctx, const string &test_name, TCdregionTester cdregion_tester)
 Given a Seq-id and a context, analyze all coding regions by calling a supplied function.

Detailed Description

Class CSeqTest provides a general API for performing a given test on.

Definition at line 95 of file seqtest.hpp.


Member Typedef Documentation

typedef void(* CSeqTest::TCdregionTester)(const objects::CSeq_id &, const CSeqTestContext *ctx, objects::CFeat_CI, objects::CSeq_test_result &) [protected]

A fuction type that analyzes coding regions.

Definition at line 113 of file seqtest.hpp.


Member Function Documentation

virtual bool CSeqTest::CanTest ( const CSerialObject obj,
const CSeqTestContext ctx 
) const [pure virtual]

Test to see whether the given object *can* be used in this test.

Implemented in CTestProtProd_EntrezNeighbors, CTestBlastp, CTestSeqId, CTestSingleAln, CTestTranscript, and CTestProtProd.

virtual CRef<objects::CSeq_test_result_set> CSeqTest::RunTest ( const CSerialObject obj,
const CSeqTestContext ctx 
) [pure virtual]
CRef< CSeq_test_result > CSeqTest::x_SkeletalTestResult ( const string &  test_name) [protected]
CRef< CSeq_test_result_set > CSeqTest::x_TestAllCdregions ( const CSerialObject obj,
const CSeqTestContext ctx,
const string &  test_name,
TCdregionTester  cdregion_tester 
) [protected]

The documentation for this class was generated from the following files:
Modified on Wed May 23 12:51:06 2012 by modify_doxy.py rev. 337098