MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
sim
include
Utils.h
Go to the documentation of this file.
1
/* -*- mode:C++ -*-
2
Utils.h Globally accessible extension methods
3
Copyright (C) 2014 The Regents of the University of New Mexico. All rights reserved.
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18
USA
19
*/
20
27
#ifndef UTILS_H
28
#define UTILS_H
29
30
#include <stdlib.h>
31
#include <time.h>
/* for nanosleep */
32
#include "
itype.h
"
33
34
namespace
MFM
35
{
36
namespace
Utils {
37
u64 GetDateTimeNow() ;
38
39
u64 GetDateTime(time_t t) ;
40
41
u32 GetDateFromDateTime(u64 datetime) ;
42
43
u32 GetTimeFromDateTime(u64 datetime) ;
44
55
bool
GetReadableResourceFile(
const
char
* relativePath,
char
* result, u32 length) ;
56
57
}
58
}
59
60
#endif
/* UTILS_H */
itype.h
Generated on Wed Oct 29 2014 05:10:17 for MFMv2.0.10 by
1.8.6