RaftLib  0.3a
C++ Stream Processing Template Library
Static Public Member Functions | Static Protected Member Functions | List of all members
SystemInfo Class Reference

Static Public Member Functions

static std::string getSystemProperty (const si::Trait trait)
 
static std::string getName (const si::Trait trait)
 
static size_t getNumTraits ()
 

Static Protected Member Functions

static std::string getUTSNameInfo (const si::Trait t)
 

Member Function Documentation

std::string SystemInfo::getName ( const si::Trait  trait)
static

getName - raturn the string name of the trait passed in by the parameter.

Parameters
trait- const Trait
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
trait- const Trait
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.

Here is the call graph for this function:

std::string SystemInfo::getUTSNameInfo ( const si::Trait  t)
staticprotected

getUTSNameInfo - helper method to get UTSName info for both OS X and Linux platforms.

Parameters
t- const Trait
Returns
- std::string - string representation of sytem property

Here is the caller graph for this function:


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