xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdOucStream Class Reference

#include <XrdOucStream.hh>

Collaboration diagram for XrdOucStream:
Collaboration graph
[legend]

Public Member Functions

 XrdOucStream (XrdSysError *erobj=0, const char *ifname=0, XrdOucEnv *anEnv=0, const char *Pfx=0)
 
 ~XrdOucStream ()
 
int Attach (int FileDescriptor, int bsz=2047)
 
int AttachIO (int infd, int outfd, int bsz=2047)
 
void Close (int hold=0)
 
int Detach ()
 
int Drain ()
 
void Echo ()
 
void Echo (bool capture)
 
int Exec (const char *, int inrd=0, int efd=0)
 
int Exec (char **, int inrd=0, int efd=0)
 
int FDNum ()
 
int FENum ()
 
void Flush ()
 
char * GetLine ()
 
char * GetToken (int lowcase=0)
 
char * GetToken (char **rest, int lowcase=0)
 
void RetToken ()
 
char * GetFirstWord (int lowcase=0)
 
char * GetMyFirstWord (int lowcase=0)
 
int GetRest (char *theBuf, int Blen, int lowcase=0)
 
char * GetWord (int lowcase=0)
 
int isAlive ()
 
int LastError ()
 
char * LastLine ()
 
int noEcho ()
 
int Put (const char *data, const int dlen)
 
int Put (const char *data)
 
int Put (const char *data[], const int dlen[])
 
int PutLine (const char *data, int dlen=0)
 
XrdOucEnvSetEnv (XrdOucEnv *newEnv)
 
void SetEroute (XrdSysError *eroute)
 
void Tabs (int x=1)
 
int Wait4Data (int msMax=-1)
 

Static Public Member Functions

static void Capture (const char **cVec=0, bool linefeed=true)
 
static XrdOucStringCapture (XrdOucString *cfObj)
 
static XrdOucStringCapture ()
 

Private Member Functions

void add2CFG (const char *data, bool isCMT=false)
 
char * add2llB (char *tok, int reset=0)
 
bool docont ()
 
bool docont (const char *path, XrdOucTList *tlP)
 
bool docontD (const char *path, XrdOucTList *tlP)
 
bool docontF (const char *path, bool noentok=false)
 
char * doelse ()
 
char * doif ()
 
bool Echo (int ec, const char *t1, const char *t2=0, const char *t3=0)
 
int getValue (const char *path, char *vbuff, int vbsz)
 
int isSet (char *var)
 
char * vSubs (char *Var)
 
int xMsg (const char *txt1, const char *txt2=0, const char *txt3=0)
 

Private Attributes

int FD
 
int FE
 
int bsize
 
int bleft
 
char * buff
 
char * bnext
 
char * recp
 
char * token
 
int flags
 
pid_t child
 
int ecode
 
int notabs
 
int xcont
 
int xline
 
char * myInst
 
StreamInfo * myInfo
 
char * myRsv1
 
char * myRsv2
 
XrdSysErrorEroute
 
XrdOucEnvmyEnv
 
char * varVal
 
const char * llPrefix
 
char * llBuff
 
char * llBcur
 
int llBleft
 
char Verbose
 
char sawif
 
char skpel
 
char llBok
 

Static Private Attributes

static const int maxVLen = 512
 
static const int llBsz = 1024
 
static XrdOucStringtheCFG
 

Constructor & Destructor Documentation

◆ XrdOucStream()

XrdOucStream::XrdOucStream ( XrdSysError erobj = 0,
const char *  ifname = 0,
XrdOucEnv anEnv = 0,
const char *  Pfx = 0 
)

◆ ~XrdOucStream()

XrdOucStream::~XrdOucStream ( )
inline

References Close(), llBuff, myInst, and varVal.

Member Function Documentation

◆ add2CFG()

void XrdOucStream::add2CFG ( const char *  data,
bool  isCMT = false 
)
private

◆ add2llB()

char * XrdOucStream::add2llB ( char *  tok,
int  reset = 0 
)
private

◆ Attach()

int XrdOucStream::Attach ( int  FileDescriptor,
int  bsz = 2047 
)

◆ AttachIO()

int XrdOucStream::AttachIO ( int  infd,
int  outfd,
int  bsz = 2047 
)

◆ Capture() [1/3]

static XrdOucString * XrdOucStream::Capture ( )
static

◆ Capture() [2/3]

static void XrdOucStream::Capture ( const char **  cVec = 0,
bool  linefeed = true 
)
static

◆ Capture() [3/3]

static XrdOucString * XrdOucStream::Capture ( XrdOucString cfObj)
static

◆ Close()

void XrdOucStream::Close ( int  hold = 0)

Referenced by ~XrdOucStream().

◆ Detach()

int XrdOucStream::Detach ( )
inline

References FD, and FE.

◆ docont() [1/2]

bool XrdOucStream::docont ( )
private

◆ docont() [2/2]

bool XrdOucStream::docont ( const char *  path,
XrdOucTList tlP 
)
private

◆ docontD()

bool XrdOucStream::docontD ( const char *  path,
XrdOucTList tlP 
)
private

◆ docontF()

bool XrdOucStream::docontF ( const char *  path,
bool  noentok = false 
)
private

◆ doelse()

char * XrdOucStream::doelse ( )
private

◆ doif()

char * XrdOucStream::doif ( )
private

◆ Drain()

int XrdOucStream::Drain ( )

Referenced by XrdOfsTPCProg::Cancel().

◆ Echo() [1/3]

void XrdOucStream::Echo ( )

◆ Echo() [2/3]

void XrdOucStream::Echo ( bool  capture)

◆ Echo() [3/3]

bool XrdOucStream::Echo ( int  ec,
const char *  t1,
const char *  t2 = 0,
const char *  t3 = 0 
)
private

◆ Exec() [1/2]

int XrdOucStream::Exec ( char **  ,
int  inrd = 0,
int  efd = 0 
)

◆ Exec() [2/2]

int XrdOucStream::Exec ( const char *  ,
int  inrd = 0,
int  efd = 0 
)

◆ FDNum()

int XrdOucStream::FDNum ( )
inline

References FD.

◆ FENum()

int XrdOucStream::FENum ( )
inline

References FE.

◆ Flush()

void XrdOucStream::Flush ( )
inline

References FD, FE, and fsync.

◆ GetFirstWord()

char * XrdOucStream::GetFirstWord ( int  lowcase = 0)

◆ GetLine()

char * XrdOucStream::GetLine ( )

◆ GetMyFirstWord()

char * XrdOucStream::GetMyFirstWord ( int  lowcase = 0)

◆ GetRest()

int XrdOucStream::GetRest ( char *  theBuf,
int  Blen,
int  lowcase = 0 
)

◆ GetToken() [1/2]

char * XrdOucStream::GetToken ( char **  rest,
int  lowcase = 0 
)

◆ GetToken() [2/2]

char * XrdOucStream::GetToken ( int  lowcase = 0)

◆ getValue()

int XrdOucStream::getValue ( const char *  path,
char *  vbuff,
int  vbsz 
)
private

◆ GetWord()

char * XrdOucStream::GetWord ( int  lowcase = 0)

◆ isAlive()

int XrdOucStream::isAlive ( )
inline

References child.

◆ isSet()

int XrdOucStream::isSet ( char *  var)
private

◆ LastError()

int XrdOucStream::LastError ( )
inline

References ecode.

◆ LastLine()

char * XrdOucStream::LastLine ( )
inline

References recp.

◆ noEcho()

int XrdOucStream::noEcho ( )
inline

References llBok.

◆ Put() [1/3]

int XrdOucStream::Put ( const char *  data)
inline

References Put().

Referenced by Put().

◆ Put() [2/3]

int XrdOucStream::Put ( const char *  data,
const int  dlen 
)

◆ Put() [3/3]

int XrdOucStream::Put ( const char *  data[],
const int  dlen[] 
)

◆ PutLine()

int XrdOucStream::PutLine ( const char *  data,
int  dlen = 0 
)

◆ RetToken()

void XrdOucStream::RetToken ( )

◆ SetEnv()

XrdOucEnv * XrdOucStream::SetEnv ( XrdOucEnv newEnv)
inline

References myEnv.

◆ SetEroute()

void XrdOucStream::SetEroute ( XrdSysError eroute)
inline

References Eroute.

◆ Tabs()

void XrdOucStream::Tabs ( int  x = 1)
inline

References notabs.

◆ vSubs()

char * XrdOucStream::vSubs ( char *  Var)
private

◆ Wait4Data()

int XrdOucStream::Wait4Data ( int  msMax = -1)

◆ xMsg()

int XrdOucStream::xMsg ( const char *  txt1,
const char *  txt2 = 0,
const char *  txt3 = 0 
)
private

Member Data Documentation

◆ bleft

int XrdOucStream::bleft
private

◆ bnext

char* XrdOucStream::bnext
private

◆ bsize

int XrdOucStream::bsize
private

◆ buff

char* XrdOucStream::buff
private

◆ child

pid_t XrdOucStream::child
private

Referenced by isAlive().

◆ ecode

int XrdOucStream::ecode
private

Referenced by LastError().

◆ Eroute

XrdSysError* XrdOucStream::Eroute
private

Referenced by SetEroute().

◆ FD

int XrdOucStream::FD
private

Referenced by Detach(), FDNum(), and Flush().

◆ FE

int XrdOucStream::FE
private

Referenced by Detach(), FENum(), and Flush().

◆ flags

int XrdOucStream::flags
private

◆ llBcur

char* XrdOucStream::llBcur
private

◆ llBleft

int XrdOucStream::llBleft
private

◆ llBok

char XrdOucStream::llBok
private

Referenced by noEcho().

◆ llBsz

const int XrdOucStream::llBsz = 1024
staticprivate

◆ llBuff

char* XrdOucStream::llBuff
private

Referenced by ~XrdOucStream().

◆ llPrefix

const char* XrdOucStream::llPrefix
private

◆ maxVLen

const int XrdOucStream::maxVLen = 512
staticprivate

◆ myEnv

XrdOucEnv* XrdOucStream::myEnv
private

Referenced by SetEnv().

◆ myInfo

StreamInfo* XrdOucStream::myInfo
private

◆ myInst

char* XrdOucStream::myInst
private

Referenced by ~XrdOucStream().

◆ myRsv1

char* XrdOucStream::myRsv1
private

◆ myRsv2

char* XrdOucStream::myRsv2
private

◆ notabs

int XrdOucStream::notabs
private

Referenced by Tabs().

◆ recp

char* XrdOucStream::recp
private

Referenced by LastLine().

◆ sawif

char XrdOucStream::sawif
private

◆ skpel

char XrdOucStream::skpel
private

◆ theCFG

XrdOucString* XrdOucStream::theCFG
staticprivate

◆ token

char* XrdOucStream::token
private

◆ varVal

char* XrdOucStream::varVal
private

Referenced by ~XrdOucStream().

◆ Verbose

char XrdOucStream::Verbose
private

◆ xcont

int XrdOucStream::xcont
private

◆ xline

int XrdOucStream::xline
private

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