Simple ASCII art generator.
More...
#include <AsciiArtGenerator.h>
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:
- Simple Interface: Just generate ASCII art
- Performance Optimized: Efficient string handling
- Extensible: Easy to add new fonts and characters
- No Formatting: Pure ASCII art generation
Usage Example:
Simple ASCII art generator.
Definition AsciiArtGenerator.h:61
RAII soft-CS: runs assert_fn on construction and deassert_fn on destruction (including early return /...
Definition SoftChipSelectGuard.h:32
SoftChipSelectGuard(AssertFn assert_fn, DeassertFn deassert_fn) noexcept
Definition SoftChipSelectGuard.h:34
◆ AsciiArtGenerator()
| AsciiArtGenerator::AsciiArtGenerator |
( |
| ) |
|
|
noexcept |
◆ ~AsciiArtGenerator()
| AsciiArtGenerator::~AsciiArtGenerator |
( |
| ) |
|
|
defaultnoexcept |
◆ AddCustomCharacter()
Add custom character mapping.
- Parameters
-
| character | Character to map |
| art_lines | Vector of art lines for the character |
◆ ClearCustomCharacters()
| void AsciiArtGenerator::ClearCustomCharacters |
( |
| ) |
|
|
noexcept |
Clear all custom character mappings.
◆ Generate()
Generate ASCII art from string.
- Parameters
-
| input | Input string to convert |
- Returns
- Generated ASCII art
◆ GetCharacterArt()
Get art lines for a character.
- Parameters
-
| character | Character to get art for |
- Returns
- Vector of art lines
◆ GetSupportedCharacters()
| std::string AsciiArtGenerator::GetSupportedCharacters |
( |
| ) |
const |
|
noexcept |
Get supported characters.
- Returns
- String of supported characters
◆ IsCharacterSupported()
| bool AsciiArtGenerator::IsCharacterSupported |
( |
char |
character | ) |
const |
|
noexcept |
Check if character is supported.
- Parameters
-
| character | Character to check |
- Returns
- true if supported, false otherwise
◆ RemoveCustomCharacter()
| void AsciiArtGenerator::RemoveCustomCharacter |
( |
char |
character | ) |
|
|
noexcept |
Remove custom character mapping.
- Parameters
-
| character | Character to remove |
◆ custom_characters_
Custom character mappings.
The documentation for this class was generated from the following files: