Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | Friends | List of all members
core::io::pdb::Field Class Reference

Data type Class to represent one field in PDB file. More...

#include <Field.hh>

Inheritance diagram for core::io::pdb::Field:
Inheritance graph
[legend]
Collaboration diagram for core::io::pdb::Field:
Collaboration graph
[legend]

Public Member Functions

 Field ()
 various constructors - only for convenience. More...
 
 Field (Size s, Size e)
 
 Field (std::string type_, Size s, Size e)
 
void getValueFrom (std::string source)
 read field value from given string. More...
 

Static Public Member Functions

static RecordRefgetRecordCollection ()
 collection builder More...
 

Public Attributes

std::string type
 string value of field, type of the field. More...
 
std::string value
 
Size start
 begining position in line, ending postion in line More...
 
Size end
 

Static Private Attributes

static RecordRef PDB_Records_
 static holder for collection. More...
 

Friends

std::ostream & operator<< (std::ostream &os, Field const &F)
 Debug output. More...
 

Detailed Description

Data type Class to represent one field in PDB file.

Definition at line 38 of file Field.hh.

Constructor & Destructor Documentation

core::io::pdb::Field::Field ( )

various constructors - only for convenience.

Definition at line 31 of file Field.cc.

Referenced by getRecordCollection().

core::io::pdb::Field::Field ( Size  s,
Size  e 
)

Definition at line 38 of file Field.cc.

core::io::pdb::Field::Field ( std::string  type_,
Size  s,
Size  e 
)

Definition at line 45 of file Field.cc.

Member Function Documentation

RecordRef & core::io::pdb::Field::getRecordCollection ( )
static

collection builder

check if records table was init, init table otherwise return reference to private static records collection

Remarks
See http://www.wwpdb.org/docs.html#format for details.

Definition at line 75 of file Field.cc.

References Field(), and PDB_Records_.

Referenced by core::io::pdb::PDB_DReader::createRecords(), core::io::pdb::HeaderInformation::fill_header_record(), core::io::pdb::HeaderInformation::fill_wrapped_records(), and core::io::pdb::PDB_DReader::mapStringToRecord().

void core::io::pdb::Field::getValueFrom ( std::string  source)

read field value from given string.

Definition at line 54 of file Field.cc.

References end, start, and value.

Referenced by core::io::pdb::PDB_DReader::mapStringToRecord().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
Field const &  F 
)
friend

Debug output.

Definition at line 61 of file Field.cc.

Member Data Documentation

Size core::io::pdb::Field::end

Definition at line 56 of file Field.hh.

Referenced by getValueFrom(), and core::io::pdb::operator<<().

RecordRef core::io::pdb::Field::PDB_Records_
staticprivate

static holder for collection.

static holder for collection of Fields.

Definition at line 69 of file Field.hh.

Referenced by getRecordCollection().

Size core::io::pdb::Field::start

begining position in line, ending postion in line

Definition at line 56 of file Field.hh.

Referenced by getValueFrom(), and core::io::pdb::operator<<().

std::string core::io::pdb::Field::type

string value of field, type of the field.

This class is intended to be just 'data' type class no need to make it private.

Definition at line 53 of file Field.hh.

std::string core::io::pdb::Field::value

The documentation for this class was generated from the following files: