ONE - On-device Neural Engine
Loading...
Searching...
No Matches
vconone Namespace Reference

Data Structures

struct  four
 
union  version
 

Functions

version get_number (void)
 get_number will return version union structure
 
std::string get_string (void)
 get_string will return string of major.minor.patch (without build)
 
std::string get_string4 (void)
 get_string4 will return string of major.minor.patch.build
 
std::string get_copyright (void)
 get_copyright will return copyright string
 

Function Documentation

◆ get_copyright()

std::string vconone::get_copyright ( void  )

get_copyright will return copyright string

Definition at line 54 of file version.cpp.

55{
56 std::string str;
57 str = "Copyright (c) 2020-2023 Samsung Electronics Co., Ltd. All Rights Reserved\r\n";
58 str += "Licensed under the Apache License, Version 2.0\r\n";
59 str += "https://github.com/Samsung/ONE";
60 return str;
61}

Referenced by main(), and print_version().

◆ get_number()

version vconone::get_number ( void  )

get_number will return version union structure

Definition at line 26 of file version.cpp.

27{
28 version v;
29 v.v = VCONONE_VERSION;
30 return v;
31}
uint64_t v
Definition vconone.h:35

References vconone::version::v.

Referenced by get_string(), and get_string4().

◆ get_string()

std::string vconone::get_string ( void  )

get_string will return string of major.minor.patch (without build)

Definition at line 44 of file version.cpp.

45{
46 std::ostringstream ss;
47
48 auto v = get_number();
49 ss << unsigned(v.f.major) << "." << unsigned(v.f.minor) << "." << unsigned(v.f.patch);
50
51 return ss.str();
52}
version get_number(void)
get_number will return version union structure
Definition version.cpp:26

References get_number().

Referenced by main(), and print_version().

◆ get_string4()

std::string vconone::get_string4 ( void  )

get_string4 will return string of major.minor.patch.build

Definition at line 33 of file version.cpp.

34{
35 std::ostringstream ss;
36
37 auto v = get_number();
38 ss << unsigned(v.f.major) << "." << unsigned(v.f.minor) << "." << unsigned(v.f.patch) << "."
39 << unsigned(v.f.build);
40
41 return ss.str();
42}

References get_number().