Choreonoid  1.8
Public Member Functions | List of all members
cnoid::GeneralSeqReader Class Reference

#include <GeneralSeqReader.h>

Public Member Functions

 GeneralSeqReader (std::ostream &os)
 
std::ostream & os ()
 
const Mappingarchive ()
 
AbstractSeqseq ()
 
double formatVersion () const
 
bool hasFrameTime () const
 
int numParts () const
 
bool checkSeqType (const std::string &type) const
 
void setCustomSeqTypeChecker (std::function< bool(GeneralSeqReader &reader, const std::string &type)> func)
 
bool readHeaders (const Mapping *archive, AbstractSeq *seq)
 
template<class SeqType , typename std::enable_if< std::is_base_of< AbstractSeq, SeqType >::value &&!std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool read (const Mapping *archive, SeqType *seq, std::function< void(const Listing &srcNode, int topIndex, typename SeqType::value_type &seqValue)> readValue)
 
template<class SeqType , typename std::enable_if< std::is_base_of< AbstractSeq, SeqType >::value &&!std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool readFrames (const Mapping *archive, SeqType *seq, std::function< void(const Listing &srcNode, int topIndex, typename SeqType::value_type &seqValue)> readValue)
 
template<class SeqType , typename std::enable_if< std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool read (const Mapping *archive, SeqType *seq, std::function< void(const ValueNode &srcNode, typename SeqType::value_type &seqValue)> readValue)
 
template<class SeqType , typename std::enable_if< std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool readFrames (const Mapping *archive, SeqType *seq, std::function< void(const ValueNode &srcNode, typename SeqType::value_type &seqValue)> readValue)
 

Constructor & Destructor Documentation

◆ GeneralSeqReader()

cnoid::GeneralSeqReader::GeneralSeqReader ( std::ostream &  os)
inline

Member Function Documentation

◆ archive()

const Mapping* cnoid::GeneralSeqReader::archive ( )
inline

◆ checkSeqType()

bool cnoid::GeneralSeqReader::checkSeqType ( const std::string &  type) const
inline

◆ formatVersion()

double cnoid::GeneralSeqReader::formatVersion ( ) const
inline

◆ hasFrameTime()

bool cnoid::GeneralSeqReader::hasFrameTime ( ) const
inline

◆ numParts()

int cnoid::GeneralSeqReader::numParts ( ) const
inline

◆ os()

std::ostream& cnoid::GeneralSeqReader::os ( )
inline

◆ read() [1/2]

template<class SeqType , typename std::enable_if< std::is_base_of< AbstractSeq, SeqType >::value &&!std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool cnoid::GeneralSeqReader::read ( const Mapping archive,
SeqType *  seq,
std::function< void(const Listing &srcNode, int topIndex, typename SeqType::value_type &seqValue)>  readValue 
)
inline

◆ read() [2/2]

template<class SeqType , typename std::enable_if< std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool cnoid::GeneralSeqReader::read ( const Mapping archive,
SeqType *  seq,
std::function< void(const ValueNode &srcNode, typename SeqType::value_type &seqValue)>  readValue 
)
inline

◆ readFrames() [1/2]

template<class SeqType , typename std::enable_if< std::is_base_of< AbstractSeq, SeqType >::value &&!std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool cnoid::GeneralSeqReader::readFrames ( const Mapping archive,
SeqType *  seq,
std::function< void(const Listing &srcNode, int topIndex, typename SeqType::value_type &seqValue)>  readValue 
)
inline

◆ readFrames() [2/2]

template<class SeqType , typename std::enable_if< std::is_base_of< AbstractMultiSeq, SeqType >::value, std::nullptr_t >::type = nullptr>
bool cnoid::GeneralSeqReader::readFrames ( const Mapping archive,
SeqType *  seq,
std::function< void(const ValueNode &srcNode, typename SeqType::value_type &seqValue)>  readValue 
)
inline

◆ readHeaders()

bool cnoid::GeneralSeqReader::readHeaders ( const Mapping archive,
AbstractSeq seq 
)
inline

◆ seq()

AbstractSeq* cnoid::GeneralSeqReader::seq ( )
inline

◆ setCustomSeqTypeChecker()

void cnoid::GeneralSeqReader::setCustomSeqTypeChecker ( std::function< bool(GeneralSeqReader &reader, const std::string &type)>  func)
inline

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