29 #ifndef CASA_LOGORIGIN_H
30 #define CASA_LOGORIGIN_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);
206 const char *fileName;
211 #define WHERE casacore::SourceLocation::canonicalize(__FILE__, __LINE__)
Bool isUnset() const
Return true if the line number and file name are not set.
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.
const String & className() const
ObjectID: A unique identifier for distributed and other objects.
const String & taskName() const
Get or set the corresponding element of the source location.
String fullName() const
Returns class::function for a member function, or ::function for a global function.
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
String location() const
Turns the entire origin except for the ObjectID into a String.
const ObjectID & objectID() const
bool Bool
Define the standard types used by Casacore.
const String & functionName() const
LogOrigin()
The default constructor sets a null class name, function name, object id, source file name...
virtual Origin origin() const =0
ABSTRACT METHODS //.
LogOrigin: The source code location of the originator of a LogMessage.
String toString() const
Turn the entire origin into a String.
String: the storage and methods of handling collections of characters.
const String & fileName() const
LogOrigin & operator=(const LogOrigin &other)
void copy_other(const LogOrigin &other)
Provide common implementation for copy constructor and assignment operator.
Defines nreal time structures used by the VLA table filler.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.