ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/DashInterface/DashInterface.cpp
Revision: 25
Committed: 2008-02-09T01:39:22-08:00 (17 years, 4 months ago) by douglas
File size: 555 byte(s)
Log Message:
All kinds of changes!

File Contents

# User Rev Content
1 douglas 22 // Dash Interface
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7 douglas 25 #include <iostream>
8    
9     #include <foreach.hpp>
10     #include <hash.hpp>
11    
12 douglas 24 #include <Audacious.hpp>
13     #include <GPS.hpp>
14    
15 douglas 25 #include <sqlite3.h>
16    
17 douglas 22 int main(int argc, char *argv[])
18     {
19 douglas 25 try
20     {
21     enum { Uname, Music, English, Metric, Nautical, Last } mode;
22     Audacious audacious;
23     GPS::GPS gps;
24    
25     {
26     gps.Query(_B("o"));
27    
28     std::cout << gps.GetLatitude() << std::endl;
29     }
30     }
31     catch (const std::exception &exception)
32     {
33     std::cerr << argv[0] << _B(": ") << exception.what() << std::endl;
34    
35     return 1;
36     }
37    
38 douglas 22 return 0;
39     }

Properties

Name Value
svn:keywords Id