00001 /** 00002 \file Robots/LoBot/util/LoSysConf.H 00003 \brief System configuration related functions. 00004 00005 Various functions to take advantage of sysconf() and other such 00006 functions to return useful info about the underlying operating system 00007 and hardware configuration (e.g., number of CPU's). 00008 */ 00009 00010 // //////////////////////////////////////////////////////////////////// // 00011 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2005 // 00012 // by the University of Southern California (USC) and the iLab at USC. // 00013 // See http://iLab.usc.edu for information about this project. // 00014 // //////////////////////////////////////////////////////////////////// // 00015 // Major portions of the iLab Neuromorphic Vision Toolkit are protected // 00016 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency // 00017 // in Visual Environments, and Applications'' by Christof Koch and // 00018 // Laurent Itti, California Institute of Technology, 2001 (patent // 00019 // pending; application number 09/912,225 filed July 23, 2001; see // 00020 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status). // 00021 // //////////////////////////////////////////////////////////////////// // 00022 // This file is part of the iLab Neuromorphic Vision C++ Toolkit. // 00023 // // 00024 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can // 00025 // redistribute it and/or modify it under the terms of the GNU General // 00026 // Public License as published by the Free Software Foundation; either // 00027 // version 2 of the License, or (at your option) any later version. // 00028 // // 00029 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope // 00030 // that it will be useful, but WITHOUT ANY WARRANTY; without even the // 00031 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // 00032 // PURPOSE. See the GNU General Public License for more details. // 00033 // // 00034 // You should have received a copy of the GNU General Public License // 00035 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write // 00036 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, // 00037 // Boston, MA 02111-1307 USA. // 00038 // //////////////////////////////////////////////////////////////////// // 00039 // 00040 // Primary maintainer for this file: mviswana usc edu 00041 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Robots/LoBot/util/LoSysConf.H $ 00042 // $Id: LoSysConf.H 13967 2010-09-18 08:00:07Z mviswana $ 00043 // 00044 00045 #ifndef LOBOT_SYSTEM_CONFIG_UTILITIES_DOT_H 00046 #define LOBOT_SYSTEM_CONFIG_UTILITIES_DOT_H 00047 00048 //----------------------------- NAMESPACE ------------------------------- 00049 00050 namespace lobot { 00051 00052 //---------------------- SYSTEM CONFIG FUNCTIONS ------------------------ 00053 00054 /// This function returns the number of processors available on the 00055 /// system. 00056 int num_cpu() ; 00057 00058 /// This function returns the maximum length of a filename in the given 00059 /// directory. 00060 int maxlen_filename(const char* path) ; 00061 00062 //----------------------------------------------------------------------- 00063 00064 } // end of namespace encapsulating this file's definitions 00065 00066 #endif 00067 00068 /* So things look consistent in everyone's emacs... */ 00069 /* Local Variables: */ 00070 /* indent-tabs-mode: nil */ 00071 /* End: */