NCBI C++ ToolKit
Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
SNetStorageObjectIoMode Struct Reference

Search Toolkit Book for SNetStorageObjectIoMode

#include <connect/services/impl/netstorage_impl.hpp>

Public Types

enum  EApi {
  eAnyApi , eBuffer , eIoStream , eIReaderIWriter ,
  eString
}
 
enum  EMth { eAnyMth , eRead , eWrite , eEof }
 

Public Member Functions

bool Set (EApi api, EMth mth)
 
void Reset ()
 
bool IoStream () const
 
void Throw (EApi api, EMth mth, string object_loc)
 

Static Private Member Functions

static string ToString (EApi api, EMth mth)
 

Private Attributes

EApi m_Api = eAnyApi
 
EMth m_Mth = eAnyMth
 

Detailed Description

Definition at line 133 of file netstorage_impl.hpp.

Member Enumeration Documentation

◆ EApi

Enumerator
eAnyApi 
eBuffer 
eIoStream 
eIReaderIWriter 
eString 

Definition at line 135 of file netstorage_impl.hpp.

◆ EMth

Enumerator
eAnyMth 
eRead 
eWrite 
eEof 

Definition at line 136 of file netstorage_impl.hpp.

Member Function Documentation

◆ IoStream()

bool SNetStorageObjectIoMode::IoStream ( ) const
inline

Definition at line 148 of file netstorage_impl.hpp.

References eIoStream, and m_Api.

◆ Reset()

void SNetStorageObjectIoMode::Reset ( void  )
inline

Definition at line 147 of file netstorage_impl.hpp.

References eAnyApi, and m_Api.

Referenced by SNetStorageObjectImpl::Close().

◆ Set()

bool SNetStorageObjectIoMode::Set ( EApi  api,
EMth  mth 
)
inline

Definition at line 138 of file netstorage_impl.hpp.

References eAnyApi, m_Api, and m_Mth.

Referenced by SNetStorageObjectImpl::SetIoMode().

◆ Throw()

void SNetStorageObjectIoMode::Throw ( EApi  api,
EMth  mth,
string  object_loc 
)

Definition at line 190 of file netstorage.cpp.

References m_Api, m_Mth, NCBI_THROW_FMT, and ToString().

Referenced by SNetStorageObjectImpl::SetIoMode().

◆ ToString()

string SNetStorageObjectIoMode::ToString ( EApi  api,
EMth  mth 
)
staticprivate

Definition at line 164 of file netstorage.cpp.

References _ASSERT, eBuffer, eEof, eIoStream, eIReaderIWriter, eRead, eString, and eWrite.

Referenced by Throw().

Member Data Documentation

◆ m_Api

EApi SNetStorageObjectIoMode::m_Api = eAnyApi
private

Definition at line 154 of file netstorage_impl.hpp.

Referenced by IoStream(), Reset(), Set(), and Throw().

◆ m_Mth

EMth SNetStorageObjectIoMode::m_Mth = eAnyMth
private

Definition at line 155 of file netstorage_impl.hpp.

Referenced by Set(), and Throw().


The documentation for this struct was generated from the following files:
Modified on Wed Apr 17 13:09:58 2024 by modify_doxy.py rev. 669887