Swarm-NG  1.1
query.hpp File Reference

Defines class arg_parse and validate function for data values. More...

#include "common.hpp"
#include "log/io.hpp"
#include <boost/regex.hpp>
#include <boost/program_options.hpp>

Go to the source code of this file.

Namespaces

 swarm
 Swarm-NG library.
 
 swarm::query
 This namespace contains routines for opening and querying a swarm log file.
 

Constant Groups

 swarm
 Swarm-NG library.
 
 swarm::query
 This namespace contains routines for opening and querying a swarm log file.
 

Enumerations

enum  swarm::query::planets_coordinate_system_t
 Execute a query on the datafile. More...
 

Functions

template<typename T >
swarm::query::arg_parse (const std::string &s)
 Parse the input.
 
template<typename T >
void swarm::query::validate (boost::any &v, const std::vector< std::string > &values, range< T > *target_type, int)
 Parser for range datatype to use with boost::program_options. More...
 
template<typename T >
std::ostream & swarm::query::operator<< (std::ostream &out, const range< T > &r)
 Petty print a range object. More...
 
std::ostream & swarm::query::output_record (std::ostream &out, gpulog::logrecord &lr, const body_range_t &bod=body_range_t())
 Pretty print a log record to the output. More...
 
void swarm::query::set_cartesian_output (const planets_coordinate_system_t &coordinate_system=origin)
 Set the output format of the execute to be in Cartesian coordinates.
 
void swarm::query::set_keplerian_output (const planets_coordinate_system_t &coordinate_system=jacobi)
 Set the output format of the execute to be in Keplerian coordinates.
 
void swarm::query::set_coordinate_system (const planets_coordinate_system_t &coordinate_system)
 Set the output format of the execute for the coordinates. More...
 

Detailed Description

Defines class arg_parse and validate function for data values.

Definition in file query.hpp.