~goby-dev/goby/2.0-win32

« back to all changes in this revision

Viewing changes to src/util/linebasedcomms/nmea_sentence.cpp

  • Committer: toby
  • Date: 2012-05-17 04:42:07 UTC
  • Revision ID: toby_tes.aubergine.gmail.com-20120517044207-vuskagm9blwaz8ej
Good start on windows VS 2008 compilation (working more or less through goby_acomms)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
// along with Goby.  If not, see <http://www.gnu.org/licenses/>.
22
22
 
23
23
 
 
24
 
24
25
#include <boost/algorithm/string.hpp>
25
26
 
26
27
#include "goby/util/binary.h"
47
48
      s = s.substr(0, s.size()-3);
48
49
    }
49
50
    // If we require a checksum and haven't found one, fail.
50
 
    if (cs_strat == REQUIRE and !found_csum)
 
51
        if (cs_strat == NMEASentence::REQUIRE && !found_csum)
51
52
      throw bad_nmea_sentence("NMEASentence: no checksum: '" + s + "'.");
52
53
    // If we found a bad checksum and we care, fail.
53
54
    if (found_csum && (cs_strat == REQUIRE || cs_strat == VALIDATE)) {