70 #ifdef MEM_OPT_VERSION
77 static void scan(
const char *data,
int len,
int start,
int size,
78 int *ans,
int defalt);
79 static void scan(
const char *data,
int len,
int start,
int size,
81 static void scan(
const char *data,
int len,
int start,
int size,
83 static void field(
const char *data,
int fld,
char *result);
85 static void sprintcol(
char *s,
int start,
int len,
const char *val);
86 static void sprintcol(
char *s,
int start,
int len,
int val);
101 strcpy(s,
"REMARK (undefined remark - this is a bug)");
103 strcpy(s,
"REMARK (undefined remark - this is a bug)");
113 mystr =
new char[strlen(data)+1];
116 NAMD_die(
"memory allocation failed in PDBUnknown::PDBUnknown");
162 char myname[
LNAME+1];
163 char myalternatelocation[
LALT+1];
164 char myresiduename[
LNAME+1];
167 char myinsertioncode[
LINSERT+1];
175 void parse_field_data(
const char *data);
176 void parse_column_data(
const char *data);
177 void sprint_columns(
char *outstr);
178 void sprint_fields(
char *outstr);
189 void parse(
const char *s);
194 const char*
name(
void);
195 void name(
const char *newname);
203 const char*
chain(
void);
204 void chain(
const char *newchain);
237 void element(
const char *newelement);
260 #ifdef MEM_OPT_VERSION
268 BigReal occupancy() {
return myoccupancy; }
269 BigReal xcoor() {
return coor[0]; }
270 BigReal ycoor() {
return coor[1]; }
271 BigReal zcoor() {
return coor[2]; }
272 BigReal temperaturefactor() {
return tempfactor; }
static const BigReal default_coor
static const int no_footnote
static const BigReal default_temperaturefactor
static void field(const char *data, int fld, char *result)
BigReal temperaturefactor(void)
const char * insertioncode(void)
static const char * PDBNames[UNKNOWN+1]
virtual ~PDBAtomRecord(void)
PDBAtomRecord(const char *data)
PDBHetatm(const char *data)
const char * residuename(void)
static void sprintcol(char *s, int start, int len, const char *val)
const BigReal * coordinates(void)
PDBUnknown(const char *data)
void sprint(char *s, PDBFormatStyle usestyle)
const char * alternatelocation(void)
void NAMD_die(const char *err_msg)
static const int default_residueseq
virtual void sprint(char *s, PDBFormatStyle usestyle=COLUMNS)
void parse(const char *s)
static void scan(const char *data, int len, int start, int size, int *ans, int defalt)
PDBData * new_PDBData(const char *data)
const char * element(void)
void sprint(char *s, PDBFormatStyle usestyle=COLUMNS)
static const int default_serial
static const BigReal default_occupancy
const char * segmentname(void)
virtual ~PDBUnknown(void)