Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
strings::utils::SequenceLoader Class Reference

#include <sequence_loader.h>

List of all members.

Static Public Member Functions

static std::vector< unsigned char > loadSequence (const char *filename, const std::map< unsigned char, unsigned char > &conversion_map)

Detailed Description

Implementation of file reader which can re-map input characters according to same map.

This class is useful for testing string manipulations, as you can re-map 256 character alphabet to anything you want.


Member Function Documentation

static std::vector<unsigned char> strings::utils::SequenceLoader::loadSequence ( const char *  filename,
const std::map< unsigned char, unsigned char > &  conversion_map 
) [inline, static]

Load sequence of re-mapped characters from input file

Parameters:
filename
mapwhich characters match to which value, if the character read on input is not included in the map, it won't appear in the resulting sequence.
Returns:
re-mapped sequence read from file

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines