FlightGear next
metar_main.cxx File Reference
#include <iomanip>
#include <sstream>
#include <iostream>
#include <string.h>
#include <time.h>
#include <cstdlib>
#include <cstdio>
#include <simgear/environment/metar.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/io/HTTPClient.hxx>
#include <simgear/io/HTTPMemoryRequest.hxx>
#include <simgear/io/raw_socket.hxx>
#include <simgear/timing/timestamp.hxx>
#include <simgear/misc/strutils.hxx>

Go to the source code of this file.

Macros

#define R   ""
 
#define G   ""
 
#define Y   ""
 
#define B   ""
 
#define M   ""
 
#define C   ""
 
#define W   ""
 
#define N   ""
 
#define NaN   SGMetarNaN
 

Functions

const char * azimuthName (double d)
 
double rnd (double r, int g=0)
 
ostream & operator<< (ostream &s, const SGMetarVisibility &v)
 
void printReport (SGMetar *m)
 
void printArgs (SGMetar *m, double airport_elevation)
 
void getproxy (string &host, string &port)
 
void usage ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ B

#define B   ""

Definition at line 58 of file metar_main.cxx.

◆ C

#define C   ""

Definition at line 60 of file metar_main.cxx.

◆ G

#define G   ""

Definition at line 56 of file metar_main.cxx.

◆ M

#define M   ""

Definition at line 59 of file metar_main.cxx.

◆ N

#define N   ""

Definition at line 62 of file metar_main.cxx.

◆ NaN

#define NaN   SGMetarNaN

◆ R

#define R   ""

Definition at line 55 of file metar_main.cxx.

◆ W

#define W   ""

Definition at line 61 of file metar_main.cxx.

◆ Y

#define Y   ""

Definition at line 57 of file metar_main.cxx.

Function Documentation

◆ azimuthName()

const char * azimuthName ( double d)

Definition at line 67 of file metar_main.cxx.

◆ getproxy()

void getproxy ( string & host,
string & port )

Definition at line 245 of file metar_main.cxx.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 304 of file metar_main.cxx.

◆ operator<<()

ostream & operator<< ( ostream & s,
const SGMetarVisibility & v )

Definition at line 92 of file metar_main.cxx.

◆ printArgs()

void printArgs ( SGMetar * m,
double airport_elevation )

Definition at line 128 of file metar_main.cxx.

◆ printReport()

void printReport ( SGMetar * m)

Definition at line 122 of file metar_main.cxx.

◆ rnd()

double rnd ( double r,
int g = 0 )

Definition at line 85 of file metar_main.cxx.

◆ usage()

void usage ( )

Definition at line 278 of file metar_main.cxx.