Go to the documentation of this file.
53 int main( int argc, char **arg)
72 fprintf(stderr, "Reading parameter file : %s\n", GetFileFullName(&fparam));
83 Error( "The file with the solution boxes can not be opened");
89 Error( "The file for the axes can not be opened");
113 fprintf(stdout, " Wrong number of parameters.\n");
114 fprintf(stdout, " Use:\n");
115 fprintf(stdout, " cuikworldaxes <world>.world <solutions>.sol\n");
116 fprintf(stdout, " Where:\n");
117 fprintf(stdout, " <world>: File describing the problem\n");
118 fprintf(stdout, " <solutions>: Solutions for which to extract the axes.\n");
119 fprintf(stdout, " File extensions are not required\n");
122 return(EXIT_SUCCESS);
Data structure to hold the information about the name of a file.
void InitWorldFromFile(Tparameters *p, Tfilename *f, Tworld *w) Constructor.
void PrintWorldAxes(Tparameters *pr, FILE *f, Tbox *b, Tworld *w) Prints the axes of the mechanism.
void Error(const char *s) General error function.
#define PARAM_EXT File extension for parameter files.
All the necessary information to generate equations for mechanisms.
Definition of the Tworld type and the associated functions.
void DeleteWorld(Tworld *w) Destructor.
Error and warning functions.
void DeleteFileName(Tfilename *fn) Destructor.
int ReadBox(FILE *f, Tbox *b) Reads a box from a file.
void CreateFileName(char *path, char *name, char *suffix, char *ext, Tfilename *fn) Constructor.
void InitParametersFromFile(char *file, Tparameters *p) Constructor from a file.
char * GetFileFullName(Tfilename *fn) Gets the file full name (paht+name+extension).
#define SOL_EXT File extension for solution files.
#define WORLD_EXT File extension for problem files.
void DeleteParameters(Tparameters *p) Destructor.
void DeleteBox(void *b) Destructor.
#define AXES_EXT File extension for the mechanism axes.
int main(int argc, char **arg) Main body of the cuikworldaxes application.
|
Follow us!