Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
Public Member Functions | Static Public Member Functions | List of all members
graphar::InfoVersion Class Reference

#include <version_parser.h>

Public Member Functions

 InfoVersion ()
 
 InfoVersion (int version)
 
 InfoVersion (int version, const std::vector< std::string > &user_define_types)
 
 InfoVersion (const InfoVersion &other)=default
 
InfoVersionoperator= (const InfoVersion &other)=default
 
bool operator== (const InfoVersion &other) const
 
int version () const
 
const std::vector< std::string > & user_define_types () const
 
std::string ToString () const
 
bool CheckType (const std::string &type_str) const
 

Static Public Member Functions

static Result< std::shared_ptr< const InfoVersion > > Parse (const std::string &str) noexcept
 

Detailed Description

InfoVersion is a class provide version information of info.

Definition at line 33 of file version_parser.h.

Constructor & Destructor Documentation

◆ InfoVersion() [1/4]

graphar::InfoVersion::InfoVersion ( )
inline

Default constructor

Definition at line 40 of file version_parser.h.

◆ InfoVersion() [2/4]

graphar::InfoVersion::InfoVersion ( int  version)
inlineexplicit

Constructor with version

Definition at line 42 of file version_parser.h.

◆ InfoVersion() [3/4]

graphar::InfoVersion::InfoVersion ( int  version,
const std::vector< std::string > &  user_define_types 
)
inlineexplicit

Constructor with version and user defined types.

Definition at line 49 of file version_parser.h.

◆ InfoVersion() [4/4]

graphar::InfoVersion::InfoVersion ( const InfoVersion other)
default

Copy constructor

Member Function Documentation

◆ CheckType()

bool graphar::InfoVersion::CheckType ( const std::string &  type_str) const
inline

Check if type is supported by version.

Definition at line 90 of file version_parser.h.

◆ operator=()

InfoVersion& graphar::InfoVersion::operator= ( const InfoVersion other)
inlinedefault

Copy assignment

◆ operator==()

bool graphar::InfoVersion::operator== ( const InfoVersion other) const
inline

Check if two InfoVersion are equal

Definition at line 63 of file version_parser.h.

◆ Parse()

Result< std::shared_ptr< const InfoVersion > > graphar::InfoVersion::Parse ( const std::string &  str)
staticnoexcept

Parse version string to InfoVersion.

Definition at line 107 of file version_parser.cc.

◆ ToString()

std::string graphar::InfoVersion::ToString ( ) const
inline

Dump version to string.

Definition at line 77 of file version_parser.h.

◆ user_define_types()

const std::vector<std::string>& graphar::InfoVersion::user_define_types ( ) const
inline

Get user defined types

Definition at line 72 of file version_parser.h.

◆ version()

int graphar::InfoVersion::version ( ) const
inline

Get version

Definition at line 69 of file version_parser.h.


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