| 16 |
|
void readSHAPEfile(const char*); |
| 17 |
|
|
| 18 |
|
char *getType() {return shapeType;} |
| 19 |
< |
void setType(char * name) {strcpy(shapeType, name);} |
| 19 |
> |
void setType(char * name) {shapeType = strdup(name);} |
| 20 |
|
|
| 21 |
|
vector<SHFunc*> getSigmaFuncs(void) {return sigmaFuncs;} |
| 22 |
|
vector<SHFunc*> getSFuncs(void) {return sFuncs;} |
| 23 |
|
vector<SHFunc*> getEpsFuncs(void) {return epsFuncs;} |
| 24 |
+ |
|
| 25 |
+ |
double getSigmaAt(double costheta, double phi); |
| 26 |
+ |
double getSAt(double costheta, double phi); |
| 27 |
+ |
double getEpsAt(double costheta, double phi); |
| 28 |
+ |
|
| 29 |
|
double getMass(void) {return mass;} |
| 30 |
|
void getI(double theI[3][3]); |
| 31 |
|
|
| 33 |
|
|
| 34 |
|
void findBegin( char* startText ); |
| 35 |
|
int count_tokens(char *line, char *delimiters); // doesn't belong here! |
| 36 |
+ |
char *TrimSpaces(char *str); // doesn't belong here! |
| 37 |
+ |
int isEndLine(char *line); // doesn't belong here! |
| 38 |
|
|
| 39 |
+ |
|
| 40 |
|
FILE *shapeFile; |
| 41 |
|
|
| 42 |
|
char *shapeType; // The name of the shape |