Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | List of all members
cif::pdb::Fs Class Reference
Inheritance diagram for cif::pdb::Fs:
Inheritance graph
[legend]
Collaboration diagram for cif::pdb::Fs:
Collaboration graph
[legend]

Public Member Functions

 Fs (row_handle r, const char *f, int remarkNr=3)
 
 Fs (const category &cat, condition &&cond, const char *f, int remarkNr=3)
 
virtual void out (std::ostream &os)
 
- Public Member Functions inherited from cif::pdb::FBase
virtual ~FBase ()
 

Public Attributes

int mNr = 3
 

Additional Inherited Members

- Protected Member Functions inherited from cif::pdb::FBase
 FBase (row_handle r, const char *f)
 
 FBase (const category &cat, condition &&cond, const char *f)
 
std::string_view text () const
 
- Protected Attributes inherited from cif::pdb::FBase
row_handle mRow
 
const char * mField
 

Detailed Description

Definition at line 736 of file cif2pdb.cpp.

Constructor & Destructor Documentation

◆ Fs() [1/2]

cif::pdb::Fs::Fs ( row_handle  r,
const char *  f,
int  remarkNr = 3 
)
inline

Definition at line 739 of file cif2pdb.cpp.

740  : FBase(r, f)
741  , mNr(remarkNr)
742  {
743  }
double * f
FBase(row_handle r, const char *f)
Definition: cif2pdb.cpp:638

◆ Fs() [2/2]

cif::pdb::Fs::Fs ( const category &  cat,
condition &&  cond,
const char *  f,
int  remarkNr = 3 
)
inline

Definition at line 744 of file cif2pdb.cpp.

745  : FBase(cat, std::move(cond), f)
746  , mNr(remarkNr)
747  {
748  }
double * f
FBase(row_handle r, const char *f)
Definition: cif2pdb.cpp:638

Member Function Documentation

◆ out()

virtual void cif::pdb::Fs::out ( std::ostream &  os)
inlinevirtual

Implements cif::pdb::FBase.

Definition at line 750 of file cif2pdb.cpp.

751  {
752  std::string s{ text() };
753  size_t width = os.width();
754 
755  if (s.empty())
756  {
757  os << "NULL";
758  if (os.width() > 4)
759  os << std::string(width - 4, ' ');
760  }
761  else if (width == 0 or s.length() <= width)
762  os << s;
763  else
764  {
765  os << std::endl;
766 
767  std::stringstream ss;
768  ss << "REMARK " << std::setw(3) << std::right << mNr << ' ';
769  WriteOneContinuedLine(os, ss.str(), 0, s);
770  }
771  }
std::string_view text() const
Definition: cif2pdb.cpp:651
size_t WriteOneContinuedLine(std::ostream &pdbFile, std::string header, int cLen, std::string line, int lStart=0)
Definition: cif2pdb.cpp:222

Member Data Documentation

◆ mNr

int cif::pdb::Fs::mNr = 3

Definition at line 773 of file cif2pdb.cpp.


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