29 #ifndef CASA_LOGORIGIN_H
30 #define CASA_LOGORIGIN_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/String.h>
34 #include <casacore/casa/System/ObjectID.h>
35 #include <casacore/casa/iosfwd.h>
39 struct SourceLocation;
111 const SourceLocation *where = 0);
118 const ObjectID &
id,
const SourceLocation *where = 0);
206 const char *fileName;
211 #define WHERE casacore::SourceLocation::canonicalize(__FILE__, __LINE__)
String location() const
Turns the entire origin except for the ObjectID into a String.
LogOrigin(const String &globalFunctionName, const SourceLocation *where=0)
Use this constructor if the log message origination is from a global function.
const String & className() const
const String & taskName() const
Get or set the corresponding element of the source location.
LogOrigin & functionName(const String &funcName)
LogOrigin()
The default constructor sets a null class name, function name, object id, source file name,...
Bool isUnset() const
Return true if the line number and file name are not set.
const String & functionName() const
const ObjectID & objectID() const
LogOrigin & line(uInt which)
String toString() const
Turn the entire origin into a String.
void copy_other(const LogOrigin &other)
Provide common implementation for copy constructor and assignment operator.
LogOrigin & className(const String &className)
LogOrigin & operator=(const LogOrigin &other)
LogOrigin(const String &className, const String &memberFuncName, const SourceLocation *where=0)
Use this constructor if the log message origination is from a class member function.
LogOrigin & sourceLocation(const SourceLocation *where)
Set the file name and line number at the same time.
const String & fileName() const
String fullName() const
Returns class::function for a member function, or ::function for a global function.
LogOrigin & fileName(const String &fileName)
LogOrigin(const LogOrigin &other)
Make this LogOrigin a copy of other.
String getNode()
Return a String with the MPI rank.
LogOrigin & taskName(const String &funcName)
LogOrigin(const String &className, const String &memberFuncName, const ObjectID &id, const SourceLocation *where=0)
Use this constructor if the log message origination is from a distributed object (don't worry if you ...
LogOrigin & objectID(const ObjectID &id)
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.