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
Collaboration diagram for core::io::pdb::Field:
Collaboration graph

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...


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

Detailed Description

Data type Class to represent one field in PDB file.

Constructor & Destructor Documentation

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

various constructors - only for convenience.

Referenced by getRecordCollection().

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

Member Function Documentation

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

collection builder

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

See for details.

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.

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 

Debug output.

Member Data Documentation

Size core::io::pdb::Field::end
RecordRef core::io::pdb::Field::PDB_Records_

static holder for collection.

static holder for collection of Fields.

Referenced by getRecordCollection().

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

begining position in line, ending postion in line

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.

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

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