strusAnalyzer  0.17
Classes | Namespaces | Enumerations | Functions
pattern_serialize.hpp File Reference

Library with serialization/deserialization of patterns from/to file. More...

#include <string>
#include <iostream>

Go to the source code of this file.

Classes

class  strus::PatternSerializer
 Object with all interfaces needed for serialization. More...
 

Namespaces

 strus
 strus toplevel namespace
 

Enumerations

enum  strus::PatternSerializerType { strus::PatternMatcherWithLexer, strus::PatternMatcherWithFeeder }
 Defines different types of pattern matchers to serialize. More...
 

Functions

bool strus::isPatternSerializerContent (const std::string &m_itrcontent, ErrorBufferInterface *errorhnd)
 Evaluate, if a content is a pattern serialization. More...
 
PatternSerializer * strus::createPatternSerializer (const std::string &filename, const PatternSerializerType &serializerType, ErrorBufferInterface *errorhnd)
 Create a serializer of patterns loaded. More...
 
PatternSerializer * strus::createPatternSerializerText (std::ostream &output, const PatternSerializerType &serializerType, ErrorBufferInterface *errorhnd)
 Create a serializer of patterns loaded as text to a stream. More...
 
bool strus::loadPatternMatcherFromSerialization (const std::string &source, PatternLexerInstanceInterface *lexer, PatternMatcherInstanceInterface *matcher, ErrorBufferInterface *errorhnd)
 Instantiate pattern matching interfaces from serialization. More...
 
bool strus::loadPatternMatcherFromSerialization (const std::string &source, PatternTermFeederInstanceInterface *feeder, PatternMatcherInstanceInterface *matcher, ErrorBufferInterface *errorhnd)
 Instantiate pattern matching interfaces from serialization. More...
 

Detailed Description

Library with serialization/deserialization of patterns from/to file.