ldas-tools-diskcacheAPI  2.7.0
Classes | Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
diskCache::Cache::Device Class Reference

#include <Device.hh>

Inheritance diagram for diskCache::Cache::Device:
Inheritance graph
[legend]
Collaboration diagram for diskCache::Cache::Device:
Collaboration graph
[legend]

Classes

struct  private_type
 

Public Types

enum  state_type {
  OFFLINE, ONLINE, OFFLINE, ONLINE,
  OFFLINE, ONLINE
}
 
enum  state_type {
  OFFLINE, ONLINE, OFFLINE, ONLINE,
  OFFLINE, ONLINE
}
 
enum  state_type {
  OFFLINE, ONLINE, OFFLINE, ONLINE,
  OFFLINE, ONLINE
}
 
typedef INT_8U id_type
 
typedef INT_8U id_type
 
typedef INT_8U id_type
 

Public Member Functions

 Device ()
 
 Device (const std::string &Path, id_type Id)
 
 Device (const Device &Source)
 
 ~Device ()
 
const std::string & Path () const
 
id_type Id () const
 
void Id (id_type Source)
 Set the id associated with the device. More...
 
bool IsOffline () const
 
void Offline ()
 
state_type State () const
 
std::string StateStr () const
 
void Used (bool Value)
 
bool Used () const
 
 Device ()
 
 Device (const std::string &Path, id_type Id)
 
 Device (const Device &Source)
 
 ~Device ()
 
const std::string & Path () const
 
id_type Id () const
 
void Id (id_type Source)
 Set the id associated with the device. More...
 
bool IsOffline () const
 
void Offline ()
 
state_type State () const
 
std::string StateStr () const
 
void Used (bool Value)
 
bool Used () const
 
 Device ()
 
 Device (const std::string &Path, id_type Id)
 
 Device (const Device &Source)
 
 ~Device ()
 
const std::string & Path () const
 
id_type Id () const
 
void Id (id_type Source)
 Set the id associated with the device. More...
 
bool IsOffline () const
 
void Offline ()
 
state_type State () const
 
std::string StateStr () const
 
void Used (bool Value)
 
bool Used () const
 

Protected Member Functions

void action ()
 
void action ()
 
void action ()
 

Private Types

typedef std::unique_ptr< private_typep_type
 
typedef std::unique_ptr< private_typep_type
 
typedef std::unique_ptr< private_typep_type
 

Private Member Functions

void path (const std::string &PathName)
 
void path (const std::string &PathName)
 
void path (const std::string &PathName)
 

Private Attributes

LDASTools::AL::ReadWriteLock::baton_type baton
 
p_type pdata
 
state_type state
 
bool used
 

Friends

class Devices
 

Member Typedef Documentation

◆ id_type [1/3]

◆ id_type [2/3]

◆ id_type [3/3]

◆ p_type [1/3]

typedef std::unique_ptr< private_type > diskCache::Cache::Device::p_type
private

◆ p_type [2/3]

typedef std::unique_ptr< private_type > diskCache::Cache::Device::p_type
private

◆ p_type [3/3]

typedef std::unique_ptr< private_type > diskCache::Cache::Device::p_type
private

Member Enumeration Documentation

◆ state_type [1/3]

Enumerator
OFFLINE 
ONLINE 
OFFLINE 
ONLINE 
OFFLINE 
ONLINE 

◆ state_type [2/3]

Enumerator
OFFLINE 
ONLINE 
OFFLINE 
ONLINE 
OFFLINE 
ONLINE 

◆ state_type [3/3]

Enumerator
OFFLINE 
ONLINE 
OFFLINE 
ONLINE 
OFFLINE 
ONLINE 

Constructor & Destructor Documentation

◆ Device() [1/9]

diskCache::Cache::Device::Device ( )

◆ Device() [2/9]

diskCache::Cache::Device::Device ( const std::string &  Path,
id_type  Id 
)

◆ Device() [3/9]

diskCache::Cache::Device::Device ( const Device Source)

◆ ~Device() [1/3]

diskCache::Cache::Device::~Device ( )

◆ Device() [4/9]

diskCache::Cache::Device::Device ( )

◆ Device() [5/9]

diskCache::Cache::Device::Device ( const std::string &  Path,
id_type  Id 
)

◆ Device() [6/9]

diskCache::Cache::Device::Device ( const Device Source)

◆ ~Device() [2/3]

diskCache::Cache::Device::~Device ( )

◆ Device() [7/9]

diskCache::Cache::Device::Device ( )

◆ Device() [8/9]

diskCache::Cache::Device::Device ( const std::string &  Path,
id_type  Id 
)

◆ Device() [9/9]

diskCache::Cache::Device::Device ( const Device Source)

◆ ~Device() [3/3]

diskCache::Cache::Device::~Device ( )

Member Function Documentation

◆ action() [1/3]

void diskCache::Cache::Device::action ( )
protected

◆ action() [2/3]

void diskCache::Cache::Device::action ( )
protected

◆ action() [3/3]

void diskCache::Cache::Device::action ( )
protected

◆ Id() [1/6]

Device::id_type diskCache::Cache::Device::Id ( ) const

◆ Id() [2/6]

id_type diskCache::Cache::Device::Id ( ) const

◆ Id() [3/6]

id_type diskCache::Cache::Device::Id ( ) const

◆ Id() [4/6]

void diskCache::Cache::Device::Id ( Device::id_type  Source)

Set the id associated with the device.

Note
This function should be used very sparingly.

◆ Id() [5/6]

void diskCache::Cache::Device::Id ( id_type  Source)

Set the id associated with the device.

Note
This function should be used very sparingly.

◆ Id() [6/6]

void diskCache::Cache::Device::Id ( id_type  Source)

Set the id associated with the device.

Note
This function should be used very sparingly.

◆ IsOffline() [1/3]

bool diskCache::Cache::Device::IsOffline ( ) const
inline

◆ IsOffline() [2/3]

bool diskCache::Cache::Device::IsOffline ( ) const

◆ IsOffline() [3/3]

bool diskCache::Cache::Device::IsOffline ( ) const

◆ Offline() [1/3]

void diskCache::Cache::Device::Offline ( )

◆ Offline() [2/3]

void diskCache::Cache::Device::Offline ( )

◆ Offline() [3/3]

void diskCache::Cache::Device::Offline ( )

◆ Path() [1/3]

const std::string & diskCache::Cache::Device::Path ( ) const

◆ Path() [2/3]

const std::string& diskCache::Cache::Device::Path ( ) const

◆ Path() [3/3]

const std::string& diskCache::Cache::Device::Path ( ) const

◆ path() [1/3]

void diskCache::Cache::Device::path ( const std::string &  PathName)
private

◆ path() [2/3]

void diskCache::Cache::Device::path ( const std::string &  PathName)
private

◆ path() [3/3]

void diskCache::Cache::Device::path ( const std::string &  PathName)
private

◆ State() [1/3]

state_type diskCache::Cache::Device::State ( ) const

◆ State() [2/3]

Device::state_type diskCache::Cache::Device::State ( ) const
inline

◆ State() [3/3]

state_type diskCache::Cache::Device::State ( ) const

◆ StateStr() [1/3]

std::string diskCache::Cache::Device::StateStr ( ) const
inline

◆ StateStr() [2/3]

std::string diskCache::Cache::Device::StateStr ( ) const

◆ StateStr() [3/3]

std::string diskCache::Cache::Device::StateStr ( ) const

◆ Used() [1/6]

void diskCache::Cache::Device::Used ( bool  Value)

◆ Used() [2/6]

void diskCache::Cache::Device::Used ( bool  Value)
inline

◆ Used() [3/6]

void diskCache::Cache::Device::Used ( bool  Value)

◆ Used() [4/6]

bool diskCache::Cache::Device::Used ( ) const

◆ Used() [5/6]

bool diskCache::Cache::Device::Used ( ) const

◆ Used() [6/6]

bool diskCache::Cache::Device::Used ( ) const
inline

Friends And Related Function Documentation

◆ Devices

Devices
friend

Member Data Documentation

◆ baton

LDASTools::AL::ReadWriteLock::baton_type diskCache::Cache::Device::baton
mutableprivate

◆ pdata

p_type diskCache::Cache::Device::pdata
private

◆ state

state_type diskCache::Cache::Device::state
private

◆ used

bool diskCache::Cache::Device::used
private

The documentation for this class was generated from the following files: