eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::ETopologyLine Class Reference

ETopologyLine aims to restrict the formats of the textlines that will be returned by an ETextReader. More...

#include <eVision/Easy/ETopologyLine.h>

Collaboration diagram for eVision::ETopologyLine:

Public Member Functions

 ETopologyLine ()
 Creates a ETopologyLine.
 ETopologyLine (const eVision::ETopologyLine &other)
 Creates a ETopologyLine.
 ETopologyLine (const std::string &format, eVision::ETopologyFormatType type)
 Creates a ETopologyLine.
 ETopologyLine (const std::string &format)
 Creates a ETopologyLine.
virtual ~ETopologyLine () throw ()
eVision::ETopologyLine & operator= (const eVision::ETopologyLine &other)
 Assignment operator.
bool operator== (const eVision::ETopologyLine &other) const
 Checks if this ETopologyLine instance is strictly equal to another ETopologyLine instance.
bool IsEqual (const eVision::ETopologyLine &other) const
 Checks if this ETopologyLine instance is strictly equal to another ETopologyLine instance.
void Load (const std::string &path)
 Loads the ETopologyLine.
void Load (eVision::ESerializer *serializer)
 Loads the ETopologyLine.
void Save (const std::string &path)
 Saves the ETopologyLine.
void Save (eVision::ESerializer *serializer)
 Saves the ETopologyLine.
void SetFormat (const std::string &format, eVision::ETopologyFormatType type)
 Sets the format.
void SetFormat (const std::string &format)
 Sets the format.
std::string GetFormat () const
 Returns the format.
eVision::ETopologyFormatType GetFormatType () const
 Returns the format type.
bool Match (const std::string &textLine) const
 Returns true if the argument complies with the topology.
bool Match (const eVision::EasyDeepOCR::ETextLine &textLine) const
 Returns true if the argument complies with the topology.
 ETopologyLine (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

ETopologyLine aims to restrict the formats of the textlines that will be returned by an ETextReader.

License(s): BasicTypes

Constructor & Destructor Documentation

◆ ETopologyLine() [1/5]

eVision::ETopologyLine::ETopologyLine ( )

Creates a ETopologyLine.

◆ ETopologyLine() [2/5]

eVision::ETopologyLine::ETopologyLine ( const eVision::ETopologyLine & other)

Creates a ETopologyLine.

Parameters
otherAnother ETopologyLine to be copied in the new ETopologyLine.

◆ ETopologyLine() [3/5]

eVision::ETopologyLine::ETopologyLine ( const std::string & format,
eVision::ETopologyFormatType type )

Creates a ETopologyLine.

Parameters
formatFormat to be set.
typeType of the format to be set.

◆ ETopologyLine() [4/5]

eVision::ETopologyLine::ETopologyLine ( const std::string & format)

Creates a ETopologyLine.

Parameters
formatFormat to be set.

◆ ~ETopologyLine()

eVision::ETopologyLine::~ETopologyLine ( )
throw ( )
virtual

◆ ETopologyLine() [5/5]

eVision::ETopologyLine::ETopologyLine ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetFormat()

std::string eVision::ETopologyLine::GetFormat ( ) const

Returns the format.

◆ GetFormatType()

eVision::ETopologyFormatType eVision::ETopologyLine::GetFormatType ( ) const

Returns the format type.

◆ IsEqual()

bool eVision::ETopologyLine::IsEqual ( const eVision::ETopologyLine & other) const

Checks if this ETopologyLine instance is strictly equal to another ETopologyLine instance.

Parameters
otherReference to the ETopologyLine instance to compare with

◆ Load() [1/2]

void eVision::ETopologyLine::Load ( const std::string & path)

Loads the ETopologyLine.

Parameters
pathPath where to save the ETopologyLine.

◆ Load() [2/2]

void eVision::ETopologyLine::Load ( eVision::ESerializer * serializer)

Loads the ETopologyLine.

Parameters
serializer

◆ Match() [1/2]

bool eVision::ETopologyLine::Match ( const eVision::EasyDeepOCR::ETextLine & textLine) const

Returns true if the argument complies with the topology.

Parameters
textLineETextLine or text string to be checked.

◆ Match() [2/2]

bool eVision::ETopologyLine::Match ( const std::string & textLine) const

Returns true if the argument complies with the topology.

Parameters
textLineETextLine or text string to be checked.

◆ operator=()

eVision::ETopologyLine & eVision::ETopologyLine::operator= ( const eVision::ETopologyLine & other)

Assignment operator.

Parameters
otherAnother ETopologyLine to be assigned in the new ETopologyLine.

◆ operator==()

bool eVision::ETopologyLine::operator== ( const eVision::ETopologyLine & other) const

Checks if this ETopologyLine instance is strictly equal to another ETopologyLine instance.

Parameters
otherReference to the ETopologyLine instance to compare with

This operator is strictly equivalent to the ETopologyLine::IsEqual method.

◆ Save() [1/2]

void eVision::ETopologyLine::Save ( const std::string & path)

Saves the ETopologyLine.

Parameters
pathPath where to save the ETopologyLine.

◆ Save() [2/2]

void eVision::ETopologyLine::Save ( eVision::ESerializer * serializer)

Saves the ETopologyLine.

Parameters
serializer

◆ SetFormat() [1/2]

void eVision::ETopologyLine::SetFormat ( const std::string & format)

Sets the format.

Parameters
formatFormat to be set.

◆ SetFormat() [2/2]

void eVision::ETopologyLine::SetFormat ( const std::string & format,
eVision::ETopologyFormatType type )

Sets the format.

Parameters
formatFormat to be set.
typeType of the format to be set.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::ETopologyLine::wrappedClass_