xc
Public Member Functions | Protected Attributes | List of all members
XC::OPS_Stream Class Reference

Base class for OpenSees streams. More...

#include <OPS_Stream.h>

Inheritance diagram for XC::OPS_Stream:
Inheritance graph
[legend]
Collaboration diagram for XC::OPS_Stream:
Collaboration graph
[legend]

Public Member Functions

int close (void)
 Close stream.
 
virtual int setFile (const std::string &fileName, openMode mode=OVERWRITE)
 
virtual int setPrecision (int precision)
 Sets the decimal precision to be used to format floating-point values on output operations. More...
 
virtual int setFloatField (floatField)
 
virtual int precision (int precision)
 
virtual int width (int width)
 
virtual OPS_Stream & write (const char *s, int n)
 
virtual OPS_Stream & write (const unsigned char *s, int n)
 
virtual OPS_Stream & write (const signed char *s, int n)
 
virtual OPS_Stream & write (const void *s, int n)
 
virtual OPS_Stream & write (const char &c)
 
virtual OPS_Stream & write (const unsigned char &c)
 
virtual OPS_Stream & write (const signed char &c)
 
virtual OPS_Stream & write (const char *s)
 
virtual OPS_Stream & write (const std::string &s)
 
virtual OPS_Stream & write (const unsigned char *s)
 
virtual OPS_Stream & write (const signed char *s)
 
virtual OPS_Stream & write (const void *p)
 
virtual OPS_Stream & write (const int &n)
 
virtual OPS_Stream & write (const unsigned int &n)
 
virtual OPS_Stream & write (const long &n)
 
virtual OPS_Stream & write (const unsigned long &n)
 
virtual OPS_Stream & write (const short &n)
 
virtual OPS_Stream & write (const unsigned short &n)
 
virtual OPS_Stream & write (const bool &b)
 
virtual OPS_Stream & write (const double &d)
 
virtual OPS_Stream & write (const float &f)
 
OPS_Stream & operator<< (const char &c)
 
OPS_Stream & operator<< (const unsigned char &c)
 
OPS_Stream & operator<< (const signed char &c)
 
OPS_Stream & operator<< (const char *s)
 
OPS_Stream & operator<< (const std::string &s)
 
OPS_Stream & operator<< (const unsigned char *s)
 
OPS_Stream & operator<< (const signed char *s)
 
OPS_Stream & operator<< (const void *p)
 
OPS_Stream & operator<< (const int &n)
 
OPS_Stream & operator<< (const unsigned int &n)
 
OPS_Stream & operator<< (const long &n)
 
OPS_Stream & operator<< (const unsigned long &n)
 
OPS_Stream & operator<< (const short &n)
 
OPS_Stream & operator<< (const unsigned short &n)
 
OPS_Stream & operator<< (const bool &b)
 
OPS_Stream & operator<< (const double &n)
 
OPS_Stream & operator<< (const float &n)
 

Protected Attributes

std::ofstream theFile
 
bool fileOpen
 

Detailed Description

Base class for OpenSees streams.

Member Function Documentation

◆ setPrecision()

int XC::OPS_Stream::setPrecision ( int  prec)
virtual

Sets the decimal precision to be used to format floating-point values on output operations.


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