xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
xtd::cpp_language Class Referencefinal

#include <cpp_language.h>

Definition

Represents information about c++ libraries, such as the version and language identifier. This class cannot be inherited.

Namespace
xtd
Library
xtd.core
Remarks
The cpp_language class contains information about c++ libraries.
For information about current c++ libraries, retrieve the cpp_language object returned by the xtd::environment::cpp_language_version method.
By design, the operating_system class is not a general purpose means of describing an operating system, and you cannot derive a more inclusive type from the operating_system class. If you need a type to contain other information about C++ libraries, create your own type, then include a field of type cpp_language and any additional fields or methods that you require.

Inherits xtd::object.

Public Member Functions

 cpp_language (uint32_t cpp)
 
language_id experimental_language () const noexcept
 
bool is_experimental_language () const noexcept
 
bool is_supported () const noexcept
 
language_id language () const noexcept
 
int32_t month () const noexcept
 
xtd::ustring name () const noexcept
 
xtd::ustring to_string () const noexcept
 Converts the value of this operating_system object to its equivalent string representation.
 
uint32_t value () const noexcept
 
const xtd::versionversion () const noexcept
 
xtd::ustring version_string () const noexcept
 
int32_t year () const noexcept
 
- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const
 Gets the type of the current instance.
 
virtual xtd::ustring to_string () const noexcept
 Returns a std::string that represents the current object.
 

Additional Inherited Members

- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Member Function Documentation

◆ to_string()

xtd::ustring xtd::cpp_language::to_string ( ) const
inlinevirtualnoexcept

Converts the value of this operating_system object to its equivalent string representation.

Returns
The string representation of the values returned by the platform, version, and service_pack methods.

Reimplemented from xtd::object.


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