use spirit parser for reading annot file
authorDiane Trout <diane@caltech.edu>
Wed, 17 May 2006 01:57:30 +0000 (01:57 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 17 May 2006 01:57:30 +0000 (01:57 +0000)
commit9cd3cb5a74f50e17d160ff5a053dbc4d27aaef10
treecf9f90b686aca2c2684c1fb05c5625cea34ee8ad
parentf25185c3fe073c83f711342a5eb0f9afca88613b
use spirit parser for reading annot file
This basically duplicates tristans original annot parser using boost::spirit.
That was more complicated than I thought, and required implementing
a functor struct that stored data when the class was instantiated and then
performed some action with the operator() was called. Look at the comment
at sequence.cpp:push_back_annot for more descriptions of how that worked.

I improved the annotate_from_sequence unit test to not use hard coded values.

I have the start of a unit test fort the annot parsing code.
(currently it parses a string and then dumps out the result)

Though I did run the gui using this code and annotations did show up in roughly
the right places.
alg/sequence.cpp
alg/sequence.hpp
alg/test/test_sequence.cpp