.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "LIBGPSMM" 3 "13 May 2005" "" "" .SH NAME libgpsmm \- C++ class wrapper for the GPS daemon .SH "SYNOPSIS" .ad l .hy 0 C++: #include .sp .HP 26 struct\ gps_data_t\ *\fBopen\fR\ (char\ *\fIhost\fR, char\ *\fIport\fR); .HP 26 struct\ gps_data_t\ *\fBopen\fR\ (void); .HP 27 struct\ gps_data_t\ *\fBquery\fR\ (char\ *\fIrequest\fR); .HP 26 struct\ gps_data_t\ *\fBpoll\fR\ (void); .HP 18 int\ \fBset_callback\fR\ (void\ (*\fIhook\fR)(struct\ gps_data_t\ *sentence,\ char\ *buf)); .HP 18 int\ \fBdel_callback\fR\ (void); .ad .hy .SH "DESCRIPTION" .PP \fIlibgpsmm\fR is a mere wrapper over \fIlibgps\fR\&. Method names are the same as the analogue C functions\&. For a detailed description of the functions please read \fBlibgps\fR(3)\&. \fBopen()\fR must be called after class constructor and before any other method (\fBopen()\fR is not inside the constructor since it may fail, however constructors have no return value)\&. The analogue of the C function \fBgps_close()\fR is in the destructor\&. .SH "SEE ALSO" .PP \fBgpsd\fR(8), \fBgps\fR(1), \fBlibgps\fR(3)\&. .SH "AUTHOR" .PP Alfredo Pironti \&.