change distance calculation
[numtypysics.git] / Os.h
blob0c0a9053d64a8feb61eaf7526348b753e99d0080
1 /*
2 * This file is part of NumptyPhysics
3 * Copyright (C) 2008 Tim Edmonds
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
16 #ifndef OS_H
17 #define OS_H
19 #include <stdlib.h>
21 class Os
23 public:
24 virtual void poll() {};
25 virtual char* getLaunchFile() { return NULL; }
26 virtual bool openBrowser( const char* url ) = 0;
27 virtual char* saveDialog( const char* path ) { return NULL; }
29 static Os* get();
30 static const char pathSep;
34 extern int npmain(int argc, char** argv);
36 #endif //OS_H