solinject  1.0.0
C++17 Dependency Injection header-only library
sol::di::impl::ConfigurationParserToken Class Reference

ConfigurationParser token More...

#include <ConfigurationParserToken.hpp>

Public Member Functions

 ConfigurationParserToken (TokenType type, std::string content)
 Constructor. More...
 
 ConfigurationParserToken (const ConfigurationParserToken &other)
 Copy constructor.
 
 ConfigurationParserToken (ConfigurationParserToken &&other) noexcept
 Move constructor.
 
ConfigurationParserTokenoperator= (ConfigurationParserToken other)
 Copy-assignment operator.
 
TokenType Type () const
 Token type property. More...
 
const std::stringContent () const
 Token content property. More...
 

Friends

void swap (ConfigurationParserToken &a, ConfigurationParserToken &b)
 Swaps two ConfigurationParserToken instances.
 

Detailed Description

Constructor & Destructor Documentation

◆ ConfigurationParserToken()

sol::di::impl::ConfigurationParserToken::ConfigurationParserToken ( TokenType  type,
std::string  content 
)
inline

Constructor.

Parameters
typethe token type
contentthe token content

Member Function Documentation

◆ Content()

const std::string& sol::di::impl::ConfigurationParserToken::Content ( ) const
inline

Token content property.

Returns
the token content or an empty string if the token type is not TokenType::Key

◆ Type()

TokenType sol::di::impl::ConfigurationParserToken::Type ( ) const
inline

Token type property.

Returns
the token type

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