xrootd
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdCl::LocationInfo Class Reference

Path location info. More...

#include <XrdClXRootDResponses.hh>

Classes

class  Location
 Location. More...
 

Public Types

enum  LocationType { ManagerOnline , ManagerPending , ServerOnline , ServerPending }
 Describes the node type and file status for a given location. More...
 
enum  AccessType { Read , ReadWrite }
 Describes the allowed access type for the file at given location. More...
 
typedef std::vector< LocationLocationList
 List of locations.
 
typedef LocationList::iterator Iterator
 Iterator over locations.
 
typedef LocationList::const_iterator ConstIterator
 Iterator over locations.
 

Public Member Functions

 LocationInfo ()
 Constructor.
 
uint32_t GetSize () const
 Get number of locations.
 
LocationAt (uint32_t index)
 Get the location at index.
 
Iterator Begin ()
 Get the location begin iterator.
 
ConstIterator Begin () const
 Get the location begin iterator.
 
Iterator End ()
 Get the location end iterator.
 
ConstIterator End () const
 Get the location end iterator.
 
void Add (const Location &location)
 Add a location.
 
bool ParseServerResponse (const char *data)
 Parse server response and fill up the object.
 

Private Member Functions

bool ProcessLocation (std::string &location)
 

Private Attributes

LocationList pLocations
 

Detailed Description

Path location info.

Member Typedef Documentation

◆ ConstIterator

typedef LocationList::const_iterator XrdCl::LocationInfo::ConstIterator

Iterator over locations.

◆ Iterator

typedef LocationList::iterator XrdCl::LocationInfo::Iterator

Iterator over locations.

◆ LocationList

List of locations.

Member Enumeration Documentation

◆ AccessType

Describes the allowed access type for the file at given location.

Enumerator
Read 

read access is allowed

ReadWrite 

write access is allowed

◆ LocationType

Describes the node type and file status for a given location.

Enumerator
ManagerOnline 

manager node where the file is online

ManagerPending 

manager node where the file is pending to be online

ServerOnline 

server node where the file is online

ServerPending 

server node where the file is pending to be online

Constructor & Destructor Documentation

◆ LocationInfo()

XrdCl::LocationInfo::LocationInfo ( )

Constructor.

Member Function Documentation

◆ Add()

void XrdCl::LocationInfo::Add ( const Location location)
inline

Add a location.

References pLocations.

◆ At()

Location & XrdCl::LocationInfo::At ( uint32_t  index)
inline

Get the location at index.

References pLocations.

Referenced by XrdCl::EcHandler::LoadPlacement(), and XrdCl::EcHandler::LoadPlacement().

◆ Begin() [1/2]

Iterator XrdCl::LocationInfo::Begin ( )
inline

Get the location begin iterator.

References pLocations.

Referenced by XrdCl::EcHandler::LoadPlacement().

◆ Begin() [2/2]

ConstIterator XrdCl::LocationInfo::Begin ( ) const
inline

Get the location begin iterator.

References pLocations.

◆ End() [1/2]

Iterator XrdCl::LocationInfo::End ( )
inline

Get the location end iterator.

References pLocations.

Referenced by XrdCl::EcHandler::LoadPlacement().

◆ End() [2/2]

ConstIterator XrdCl::LocationInfo::End ( ) const
inline

Get the location end iterator.

References pLocations.

◆ GetSize()

uint32_t XrdCl::LocationInfo::GetSize ( ) const
inline

Get number of locations.

References pLocations.

Referenced by XrdCl::EcHandler::LoadPlacement(), and XrdCl::EcHandler::LoadPlacement().

◆ ParseServerResponse()

bool XrdCl::LocationInfo::ParseServerResponse ( const char *  data)

Parse server response and fill up the object.

◆ ProcessLocation()

bool XrdCl::LocationInfo::ProcessLocation ( std::string &  location)
private

Member Data Documentation

◆ pLocations

LocationList XrdCl::LocationInfo::pLocations
private

Referenced by Add(), At(), Begin(), Begin(), End(), End(), and GetSize().


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