ewmscp  ..
Public Member Functions | Protected Member Functions | Friends | List of all members
posixFileIoCommon::attrDataType Class Reference

#include <posixFileCommon.h>

Inheritance diagram for posixFileIoCommon::attrDataType:
[legend]
Collaboration diagram for posixFileIoCommon::attrDataType:
[legend]

Public Member Functions

 ~attrDataType () override=default
 
void add (const std::string &name, const std::string &value)
 
void set (ioHandle *handle) override
 set this set of attributes on the file described by handle More...
 

Protected Member Functions

void fill (posixFileIoCommon &handler)
 

Friends

class gpfsIoCommon
 
class posixFileIoCommon
 

Additional Inherited Members

- Protected Attributes inherited from ioHandle::attrDataType
std::forward_list< std::pair< std::string, std::string > > xattrs
 

Detailed Description

Definition at line 23 of file posixFileCommon.h.

Constructor & Destructor Documentation

◆ ~attrDataType()

posixFileIoCommon::attrDataType::~attrDataType ( )
overridevirtualdefault

Reimplemented from ioHandle::attrDataType.

Member Function Documentation

◆ add()

void posixFileIoCommon::attrDataType::add ( const std::string &  name,
const std::string &  value 
)

Definition at line 168 of file posixFileCommon.cpp.

168  {
169  xattrs.emplace_front(name, value);
170 }

References ioHandle::attrDataType::xattrs.

◆ fill()

void posixFileIoCommon::attrDataType::fill ( posixFileIoCommon handler)
protected

Definition at line 203 of file posixFileCommon.cpp.

203  {
204 };

◆ set()

void posixFileIoCommon::attrDataType::set ( ioHandle handle)
overridevirtual

set this set of attributes on the file described by handle

Exceptions
std::system_errorif attr setting fails
Parameters
[in]handle[in] handler for output file to set attrs on

Implements ioHandle::attrDataType.

Definition at line 171 of file posixFileCommon.cpp.

171  {
172  for (const auto& item : xattrs) {
173  handle->setXattr(item.first, item.second);
174  }
175 }

References ioHandle::setXattr().

Referenced by gpfsIoCommon::attrDataType::set().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ gpfsIoCommon

friend class gpfsIoCommon
friend

Definition at line 24 of file posixFileCommon.h.

◆ posixFileIoCommon

friend class posixFileIoCommon
friend

Definition at line 25 of file posixFileCommon.h.


The documentation for this class was generated from the following files:
ioHandle::setXattr
virtual void setXattr(const std::string &, const std::string &)
Definition: ioHandle.h:43
ioHandle::attrDataType::xattrs
std::forward_list< std::pair< std::string, std::string > > xattrs
Definition: ioHandle.h:24