std::string SystemInfo::getName |
( |
const si::Trait |
trait | ) |
|
|
static |
getName - raturn the string name of the trait passed in by the parameter.
- Parameters
-
- Returns
- std::string - name of system trait
size_t SystemInfo::getNumTraits |
( |
| ) |
|
|
static |
getNumTraits - returns the total number of defined traits, which is the value Trait::N defined above.
- Returns
- size_t - number of traits.
std::string SystemInfo::getSystemProperty |
( |
const si::Trait |
trait | ) |
|
|
static |
getSystemProperty - call with a trait from the enum defined above, returns the property from whatever system / processor calls are available. If there is no info for that field then zero is returned as a string.
- Parameters
-
- Returns
- - std::string representation of the system property
systeminfo.cpp -
- Author
- : Jonathan Beard
- Version
- : Wed Apr 23 15:32:06 2014
Copyright 2014 Jonathan Beard
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
std::string SystemInfo::getUTSNameInfo |
( |
const si::Trait |
t | ) |
|
|
staticprotected |
getUTSNameInfo - helper method to get UTSName info for both OS X and Linux platforms.
- Parameters
-
- Returns
- - std::string - string representation of sytem property
The documentation for this class was generated from the following files: