Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Functions | Variables
pml2csv.cpp File Reference
#include <iostream>
#include <string>
#include <PhysicalModel.h>
#include <MultiComponent.h>
#include <StructuralComponent.h>
#include <Atom.h>
#include <math.h>
#include <limits.h>
#include <map>
+ Include dependency graph for pml2csv.cpp:

Classes

class  ProgramArg
 TODO Comment class here. More...
 

Functions

ProgramArg argVal (defaultsArg, sizeof defaultsArg/sizeof *defaultsArg)
 
bool isIn (StructuralComponent *sc, Atom *a)
 
int main (int argc, char **argv)
 
void printArg ()
 
void processArg ()
 

Variables

string defaultsArg [][2]
 
string filename
 
string output
 
string selected
 
char separator
 
const char * usage
 

Function Documentation

ProgramArg argVal ( defaultsArg  ,
sizeof defaultsArg/sizeof *  defaultsArg 
)

Referenced by main(), and processArg().

bool isIn ( StructuralComponent *  sc,
Atom *  a 
)
int main ( int  argc,
char **  argv 
)
void printArg ( )

References filename, output, selected, and separator.

Referenced by main().

void processArg ( )

References argVal(), filename, output, selected, separator, and usage.

Referenced by main().

Variable Documentation

string defaultsArg[][2]
Initial value:
= {
{ "-f", "" },
{ "-select", "" },
{ "-o", ""},
{ "-d", "comma"},
}
string filename
string output
string selected
char separator
const char* usage
Initial value:
= "usage:\n"
"pml2csv -f=file.pml [-select=name] [-o=output.csv] [-d=space]\n"
"(Note no space around '=')\n"
"Where the flags can be any of: \n"
"-f the input pml document\n"
"-select the name of the structural component or cell to export as csv\n"
" (default = all atoms)\n"
"-o name of the csv output file (default=file.csv)\n"
"-d demiter can be either 'space' or 'comma' (default is 'comma')\n"

Referenced by main(), and processArg().