Public Member Functions | Public Attributes | List of all members
Aws::FileManagement::FileTokenInfo Class Reference

#include <file_manager_strategy.h>

Public Member Functions

void deserialize (const std::string &token_info_json)
 
 FileTokenInfo ()=default
 
 FileTokenInfo (const std::string &file_path, const long position, const bool eof)
 
 FileTokenInfo (std::string &&file_path, const long position, const bool eof)
 
 FileTokenInfo (const FileTokenInfo &info)=default
 
FileTokenInfooperator= (const FileTokenInfo &other)=default
 
std::string serialize () const
 
 ~FileTokenInfo ()=default
 

Public Attributes

bool eof_ {}
 
std::string file_path_
 
int64_t position_ = 0
 

Detailed Description

Stores file token information for the purpose of tracking read locations.

Definition at line 56 of file file_manager_strategy.h.

Constructor & Destructor Documentation

Aws::FileManagement::FileTokenInfo::FileTokenInfo ( )
default
Aws::FileManagement::FileTokenInfo::FileTokenInfo ( const std::string &  file_path,
const long  position,
const bool  eof 
)
inlineexplicit

Definition at line 62 of file file_manager_strategy.h.

Aws::FileManagement::FileTokenInfo::FileTokenInfo ( std::string &&  file_path,
const long  position,
const bool  eof 
)
inlineexplicit

Definition at line 71 of file file_manager_strategy.h.

Aws::FileManagement::FileTokenInfo::FileTokenInfo ( const FileTokenInfo info)
default
Aws::FileManagement::FileTokenInfo::~FileTokenInfo ( )
default

Member Function Documentation

void Aws::FileManagement::FileTokenInfo::deserialize ( const std::string &  token_info_json)
inline

Takes a Token JSON string and sets this tokens values based on that.

Definition at line 103 of file file_manager_strategy.h.

FileTokenInfo& Aws::FileManagement::FileTokenInfo::operator= ( const FileTokenInfo other)
default
std::string Aws::FileManagement::FileTokenInfo::serialize ( ) const
inline

Serializes a tokens information into a JSON string

Returns
A JSON representation of the token

Definition at line 89 of file file_manager_strategy.h.

Member Data Documentation

bool Aws::FileManagement::FileTokenInfo::eof_ {}

Set to true if this is the last token for the file

Definition at line 128 of file file_manager_strategy.h.

std::string Aws::FileManagement::FileTokenInfo::file_path_

The file that this token corrosponds to

Definition at line 118 of file file_manager_strategy.h.

int64_t Aws::FileManagement::FileTokenInfo::position_ = 0

The position in the file that this token corrosponds to

Definition at line 123 of file file_manager_strategy.h.


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


file_management
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:23