where is OPS_stream.h?

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
jslin
Posts: 8
Joined: Mon Jun 28, 2004 5:20 pm
Location: Univ. Pittsburgh

where is OPS_stream.h?

Post by jslin » Wed Aug 18, 2004 10:13 am

Much of the debugging code uses opserr as the output stream. It is defined in OPS_globals.h as follows:

#define _USING_OpenSees_STREAMS
#include <OPS_Stream.h>
extern OPS_Stream &opserr;
#define endln "\n"

I just browsed the code listing on the web site but am not able to locate OPS_Stream.h. Is that out of date?

Would there be any problem by just uncommenting _USING_STL_STREAMS for the following code?

// #define _USING_STL_STREAMS
// #include <iostream>
// using std::cerr;
// using std::ostream;
// #define opserr cerr
// #define OPS_Stream ostream
// #define endln endl

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk » Wed Aug 18, 2004 12:27 pm

it is in the OpenSees/SRC/handler directory.

jslin
Posts: 8
Joined: Mon Jun 28, 2004 5:20 pm
Location: Univ. Pittsburgh

I should have looked up the file list

Post by jslin » Thu Aug 19, 2004 9:23 am

Thanks for the prompt response.

I realizized that I should have looked up the class interface->File List from browsing upon which a click of the file name showed the folder it lies.

I found class interface to be very useful. For instance I was really curious about where is opserr defined since in OPS_globals.h it is stated as
extern OPS_Stream &opserr;
A check on the Opensees File Members shows that it is defined in command.cpp.

Post Reply