PDBUnknown Class Reference

#include <PDBData.h>

Inheritance diagram for PDBUnknown:

PDBData List of all members.

Public Member Functions

 PDBUnknown (const char *data)
virtual ~PDBUnknown (void)
void sprint (char *s, PDBFormatStyle usestyle)

Detailed Description

Definition at line 108 of file PDBData.h.


Constructor & Destructor Documentation

PDBUnknown::PDBUnknown ( const char *  data  )  [inline]

Definition at line 112 of file PDBData.h.

References NAMD_die().

00112                                : PDBData(PDBData::UNKNOWN) {
00113      mystr = new char[strlen(data)+1];
00114      if ( mystr == NULL )
00115      {
00116        NAMD_die("memory allocation failed in PDBUnknown::PDBUnknown");
00117      }
00118      strcpy(mystr, data);
00119    }

virtual PDBUnknown::~PDBUnknown ( void   )  [inline, virtual]

Definition at line 120 of file PDBData.h.

00120                               {
00121      delete [] mystr;
00122    }  


Member Function Documentation

void PDBUnknown::sprint ( char *  s,
PDBFormatStyle  usestyle 
) [inline]

Definition at line 123 of file PDBData.h.

References PDBData::COLUMNS.

00123                                                  {
00124      strcpy(s, mystr);
00125      if (usestyle == PDBData::COLUMNS)   // they are the same, but I won't
00126        strcpy( s, mystr);                //   get the stupid warning during
00127       else                               //   compilation
00128        strcpy( s, mystr);
00129    }


The documentation for this class was generated from the following file:
Generated on Wed Nov 22 01:17:22 2017 for NAMD by  doxygen 1.4.7