MOOS 0.2375
/home/toby/moos-ivp/MOOS-2375-Oct0611/Core/MOOSLIB/MOOSGlobalHelper.cpp
Go to the documentation of this file.
00001 
00002 //
00003 //   MOOS - Mission Oriented Operating Suite 
00004 //  
00005 //   A suit of Applications and Libraries for Mobile Robotics Research 
00006 //   Copyright (C) 2001-2005 Massachusetts Institute of Technology and 
00007 //   Oxford University. 
00008 //    
00009 //   This software was written by Paul Newman at MIT 2001-2002 and Oxford 
00010 //   University 2003-2005. email: pnewman@robots.ox.ac.uk. 
00011 //      
00012 //   This file is part of a  MOOS Core Component. 
00013 //        
00014 //   This program is free software; you can redistribute it and/or 
00015 //   modify it under the terms of the GNU General Public License as 
00016 //   published by the Free Software Foundation; either version 2 of the 
00017 //   License, or (at your option) any later version. 
00018 //          
00019 //   This program is distributed in the hope that it will be useful, 
00020 //   but WITHOUT ANY WARRANTY; without even the implied warranty of 
00021 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
00022 //   General Public License for more details. 
00023 //            
00024 //   You should have received a copy of the GNU General Public License 
00025 //   along with this program; if not, write to the Free Software 
00026 //   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
00027 //   02111-1307, USA. 
00028 //
00030 
00031 #ifdef _WIN32
00032     #pragma warning(disable : 4786)
00033     #pragma warning(disable : 4503)
00034 #endif
00035 
00036 
00037 #include "MOOSGlobalHelper.h"
00038 
00039 #ifdef _WIN32
00040     #include <winsock2.h>
00041     #include "windows.h"
00042     #include "winbase.h"
00043     #include "winnt.h"
00044 #endif
00045 
00046 #ifndef _WIN32
00047     #include <unistd.h>
00048     #include <sys/times.h>
00049     #include <termios.h>
00050 #endif
00051 
00052 #include <time.h>
00053 #include <sys/types.h>
00054 #include <sys/stat.h>
00055 #include <sys/timeb.h>
00056 #include <stdio.h>
00057 #include <iostream>
00058 
00059 using namespace std;
00060 
00061 
00062 
00063 bool    gbPlayBack = false;
00064 
00065 
00066 
00067 void SetMOOSPlayBack(bool bPlayBack)
00068 {
00069     if(bPlayBack)
00070     {
00071         printf("PLAY BACK MODE IS ON\n");
00072     }
00073     gbPlayBack = bPlayBack;
00074 }
00075 bool IsMOOSPlayBack()
00076 {
00077     return gbPlayBack;
00078 }
00079 
00080 
00081 
00082 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines