XJ music engine  1.9.6
In-game runtime engine for XJ music.
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
XJ::ParseAnti Class Reference

#include <ParseAnti.h>

Public Member Functions

 ParseAnti (const std::string &raw)
 
bool isViolatedBy (const ParseAnti &target) const
 
bool isAllowed (const std::vector< ParseAnti > &memes) const
 

Static Public Member Functions

static ParseAnti fromString (const std::string &raw)
 

Public Attributes

std::string body
 
bool valid
 

Static Public Attributes

static const std::regex rgx
 

Detailed Description

Meme Matcher for Anti-Memes

Parse any meme to test if it's valid, and extract its features

Artist can add !MEME values into Programs https://github.com/xjmusic/xjmusic/issues/214

Constructor & Destructor Documentation

◆ ParseAnti()

ParseAnti::ParseAnti ( const std::string &  raw)
explicit

Member Function Documentation

◆ fromString()

ParseAnti ParseAnti::fromString ( const std::string &  raw)
static

◆ isAllowed()

bool ParseAnti::isAllowed ( const std::vector< ParseAnti > &  memes) const

◆ isViolatedBy()

bool ParseAnti::isViolatedBy ( const ParseAnti target) const

Member Data Documentation

◆ body

std::string XJ::ParseAnti::body

◆ rgx

const std::regex ParseAnti::rgx
static

◆ valid

bool XJ::ParseAnti::valid

The documentation for this class was generated from the following files: