Skip to content
Snippets Groups Projects
Workspace.cpp 1.19 KiB
Newer Older
Matt Clarke's avatar
Matt Clarke committed

Logger& Workspace::g_log = Logger::get("Workspace");

Matt Clarke's avatar
Matt Clarke committed
{}
Matt Clarke's avatar
Matt Clarke committed
Workspace::Workspace(const Workspace& A)  :
     _title(A._title),_comment(A._comment)
{}

/// Assignment operator
Workspace& Workspace::operator=(const Workspace& A)
  if (this!=&A)
  {
    _comment=A._comment;
    _title=A._title;
  }	       

/// Destructor
// RJT, 3/10/07: The Analysis Data Service needs to be able to delete workspaces, so I moved this from protected to public.
Workspace::~Workspace()
Matt Clarke's avatar
Matt Clarke committed
{}
	
/** Set the title of the workspace
 * 
 *  @param t The title
 */
void Workspace::setTitle(const std::string& t)
{
Matt Clarke's avatar
Matt Clarke committed
     _title=t;
}
/** Set the comment field of the workspace
 * 
 *  @param c The comment
 */
void Workspace::setComment(const std::string& c)

/** Get the workspace title
 * 
 *  @return The title
 */
const std::string& Workspace::getTitle() const
Matt Clarke's avatar
Matt Clarke committed

/** Get the workspace comment
 * 
 *  @return The comment
 */
const std::string& Workspace::getComment() const
Matt Clarke's avatar
Matt Clarke committed
    return _comment;