TwiceAsNice  2019-02-18
Functions | Variables
qsiimage.cpp File Reference
#include <qsiapi.h>
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <cmath>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for qsiimage.cpp:

Functions

static double gettime ()
 Get a timestamp. More...
 
std::string timestamp ()
 Create an ISO 8601 formatted time stamp. More...
 
static short name2position (QSICamera &cam, const std::string &filtername)
 convert the name of a filter into a number More...
 
void usage ()
 usage display of the program More...
 
int image_main (int argc, char *argv[])
 Main function. More...
 
int main (int argc, char *argv[])
 

Variables

static bool verbose = false
 
static double starttime
 Format a timestamp with millisecond precision for verbose mode. More...
 

Function Documentation

◆ gettime()

static double gettime ( )
static

Get a timestamp.

◆ image_main()

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

Main function.

To simplify exception handle, call this function from main(), and handle exceptions there.

◆ main()

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

◆ name2position()

static short name2position ( QSICamera cam,
const std::string &  filtername 
)
static

convert the name of a filter into a number

The filter position number we manipulate here is the number printed on the filterwheel, which starts at 1. Thus it is the API filter position + 1.

◆ usage()

void usage ( void  )

usage display of the program

Variable Documentation

◆ starttime

double starttime
static

Format a timestamp with millisecond precision for verbose mode.

◆ verbose

bool verbose = false
static