|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Simple ASCII art generator. More...
#include <AsciiArtGenerator.h>
Public Member Functions | |
| AsciiArtGenerator () noexcept | |
| Default constructor. | |
| ~AsciiArtGenerator () noexcept=default | |
| Destructor. | |
| std::string | Generate (const std::string &input) const noexcept |
| Generate ASCII art from string. | |
| void | AddCustomCharacter (char character, const std::vector< std::string > &art_lines) noexcept |
| Add custom character mapping. | |
| void | RemoveCustomCharacter (char character) noexcept |
| Remove custom character mapping. | |
| void | ClearCustomCharacters () noexcept |
| Clear all custom character mappings. | |
| bool | IsCharacterSupported (char character) const noexcept |
| Check if character is supported. | |
| std::string | GetSupportedCharacters () const noexcept |
| Get supported characters. | |
Private Member Functions | |
| std::vector< std::string > | GetCharacterArt (char character) const noexcept |
| Get art lines for a character. | |
Private Attributes | |
| std::map< char, std::vector< std::string > > | custom_characters_ |
| Custom character mappings. | |
Simple ASCII art generator.
This class provides a simple ASCII art generator that creates large, stylized text from input strings. It focuses only on generating plain ASCII art without formatting - formatting is handled by the Logger system.
Key Features:
Usage Example:
|
noexcept |
Default constructor.
|
defaultnoexcept |
Destructor.
|
noexcept |
Add custom character mapping.
| character | Character to map |
| art_lines | Vector of art lines for the character |
|
noexcept |
Clear all custom character mappings.
|
noexcept |
Generate ASCII art from string.
| input | Input string to convert |
|
privatenoexcept |
Get art lines for a character.
| character | Character to get art for |
|
noexcept |
Get supported characters.
|
noexcept |
Check if character is supported.
| character | Character to check |
|
noexcept |
Remove custom character mapping.
| character | Character to remove |
|
private |
Custom character mappings.