Rebel Fork Framework
Urho3D::ApplicationFlavor Struct Reference

Class that represents specific set of flavor components. More...

#include <Urho3D/Engine/ApplicationFlavor.h>

Public Member Functions

 ApplicationFlavor (const ea::string &str)
 
 ApplicationFlavor (std::initializer_list< ApplicationFlavorMap::value_type > components)
 
ea::optional< unsigned > Matches (const ApplicationFlavorPattern &pattern) const
 Returns distance (smaller is better) if flavor matches the pattern. Returns none if doesn't match.
 
ea::string ToString () const
 Returns string representation of flavor.
 

Public Attributes

ApplicationFlavorMap components_
 

Static Public Attributes

static const ApplicationFlavor Universal {{"*", {"*"}}}
 Universal flavor matches any pattern.
 
static const ApplicationFlavor Empty
 Empty flavor matches only empty patterns.
 
static const ApplicationFlavor Platform {GetPlatformFlavor()}
 

Detailed Description

Class that represents specific set of flavor components.

Member Data Documentation

◆ Platform

const ApplicationFlavor Urho3D::ApplicationFlavor::Platform {GetPlatformFlavor()}
static

Flavor of current platform. There's one component "platform" which consists of:

  • Platform name (if known): windows|uwp|linux|android|rpi|macos|ios|tvos|web
  • Platform type (if known and not web): desktop|mobile|console

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