NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CPSG_BlobData Class Reference

Search Toolkit Book for CPSG_BlobData

Blob data. More...

#include <objtools/pubseq_gateway/client/psg_client.hpp>

+ Inheritance diagram for CPSG_BlobData:
+ Collaboration diagram for CPSG_BlobData:

Public Member Functions

template<class TDataId = CPSG_DataId>
const TDataId * GetId () const
 Get data ID. More...
 
istream & GetStream () const
 Get the stream from which to read the item's content. More...
 
- Public Member Functions inherited from CPSG_ReplyItem
EType GetType () const
 
EPSG_Status GetStatus (CDeadline deadline) const
 Get the final result of this blob's retrieval. More...
 
SPSG_Message GetNextMessage (EDiagSev min_severity=eDiag_Error) const
 Unstructured text containing auxiliary info about the result – such as messages and errors that came from the PSG server or occured while trying to send request or to read and to process the reply. More...
 
shared_ptr< CPSG_ReplyGetReply () const
 Get the reply that contains this item. More...
 
const stringGetProcessorId ()
 Get processor ID. More...
 
virtual ~CPSG_ReplyItem ()
 

Private Member Functions

 CPSG_BlobData (unique_ptr< CPSG_DataId > id)
 

Private Attributes

unique_ptr< CPSG_DataIdm_Id
 
unique_ptr< istream > m_Stream
 

Friends

class CPSG_Reply
 

Additional Inherited Members

- Public Types inherited from CPSG_ReplyItem
enum  EType {
  eBlobData , eBlobInfo , eSkippedBlob , eBioseqInfo ,
  eNamedAnnotInfo , ePublicComment , eProcessor , eIpgInfo ,
  eNamedAnnotStatus , eEndOfReply
}
 
- Protected Member Functions inherited from CPSG_ReplyItem
 CPSG_ReplyItem (EType type)
 

Detailed Description

Blob data.

Definition at line 717 of file psg_client.hpp.

Constructor & Destructor Documentation

◆ CPSG_BlobData()

CPSG_BlobData::CPSG_BlobData ( unique_ptr< CPSG_DataId id)
private

Definition at line 1050 of file psg_client.cpp.

Member Function Documentation

◆ GetId()

template<class TDataId = CPSG_DataId>
const TDataId* CPSG_BlobData::GetId ( void  ) const
inline

Get data ID.

Definition at line 722 of file psg_client.hpp.

References m_Id.

◆ GetStream()

istream& CPSG_BlobData::GetStream ( void  ) const
inline

Get the stream from which to read the item's content.

Note
If no content, then reading from the stream will result in EOF.

Definition at line 726 of file psg_client.hpp.

References m_Stream.

Referenced by CPSGDataLoader_Impl::GetBlobDataStream().

Friends And Related Function Documentation

◆ CPSG_Reply

friend class CPSG_Reply
friend

Definition at line 734 of file psg_client.hpp.

Member Data Documentation

◆ m_Id

unique_ptr<CPSG_DataId> CPSG_BlobData::m_Id
private

Definition at line 731 of file psg_client.hpp.

Referenced by GetId().

◆ m_Stream

unique_ptr<istream> CPSG_BlobData::m_Stream
private

Definition at line 732 of file psg_client.hpp.

Referenced by GetStream().


The documentation for this class was generated from the following files:
Modified on Sun May 12 04:57:20 2024 by modify_doxy.py rev. 669887