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;
105 LogOrigin(
const String &globalFunctionName,
const SourceLocation *where = 0);
111 const SourceLocation *where = 0);
118 const ObjectID &
id,
const SourceLocation *where = 0);
211 #define WHERE casacore::SourceLocation::canonicalize(__FILE__, __LINE__)
String getNode()
Return a String with the MPI rank.
LogOrigin & sourceLocation(const SourceLocation *where)
Set the file name and line number at the same time.
ObjectID: A unique identifier for distributed and other objects.
const String & functionName() const
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
const ObjectID & objectID() const
String location() const
Turns the entire origin except for the ObjectID into a String.
String fullName() const
Returns class::function for a member function, or ::function for a global function.
const String & taskName() const
Get or set the corresponding element of the source location.
bool Bool
Define the standard types used by Casacore.
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.
LogOrigin: The source code location of the originator of a LogMessage.
const String & className() const
const String & fileName() const
String: the storage and methods of handling collections of characters.
LogOrigin & operator=(const LogOrigin &other)
this file contains all the compiler specific defines
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.