Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

Resource Class Reference

Abstract the notion of Resource. More...

#include <Resource.h>

List of all members.

Public Member Functions

 Resource (const std::string &aFrom, const std::string &aTo, bool aShared)
 Simple constructor.
void setFrom (const std::string &aFrom)
 From field setter.
void setTo (const std::string &aTo)
 To field setter.
void setShared (bool aShared)
 Shared field setter.
std::string getFrom ()
 From getter.
std::string getTo ()
 To getter.
bool getShared ()
 Shared getter.


Detailed Description

Abstract the notion of Resource.

Used to know if a Resource (typically a file ) used by the agent must be copied to (or taken from) the shared directory


Member Function Documentation

std::string Resource::getFrom  ) 
 

From getter.

Returns:
The path of the file

bool Resource::getShared  ) 
 

Shared getter.

Parameters:
If the Resource can be shared with other tasks

std::string Resource::getTo  ) 
 

To getter.

Returns:
The destination path of the file

void Resource::setFrom const std::string &  aFrom  ) 
 

From field setter.

Parameters:
aFrom the path of the file

void Resource::setShared bool  aShared  ) 
 

Shared field setter.

Parameters:
aShared if the Resource can be shared with other tasks

void Resource::setTo const std::string &  aTo  ) 
 

To field setter.

Parameters:
aTo the destination path of the file


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:15:28 2006 for k10-agent by  doxygen 1.4.4