MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
utility.h
Go to the documentation of this file.
1 // utility.h ---
2 // Description: Some utility function.
3 // Author: Subhasis Ray
4 // Maintainer:
5 // Copyright (C) 2010 Subhasis Ray, all rights reserved.
6 // Created: Wed Mar 23 10:25:58 2011 (+0530)
7 // Version:
8 // Last-Updated: Tue Jul 23 12:48:17 2013 (+0530)
9 // By: subha
10 // Update #: 19
11 
12 #ifndef _UTILITY_H
13 
14 #include "strutil.h"
15 
16 // See types.cpp file for definitions.
17 namespace moose
18 {
19 
20  char shortType(std::string type);
21  char innerType(char typecode);
22  char shortFinfo(std::string ftype);
23  const map<std::string, std::string>& getArgMap();
24 
31  inline string basename( const string& path )
32  {
33  return path.substr( path.find_last_of('/') + 1 );
34  }
35 
36 }
37 
38 
39 #endif // !_UTILITY_H
40 
41 //
42 // utility.h ends here
char shortFinfo(std::string ftype)
Definition: types.cpp:87
char shortType(std::string type)
Definition: types.cpp:41
string basename(const string &path)
Givem path of MOOSE element, return its name. It's behaviour is like basename of unix command e...
Definition: utility.h:31
const map< string, string > & getArgMap()
Definition: setupenv.cpp:41
char innerType(char typecode)
Definition: types.cpp:104
static char path[]
Definition: mfield.cpp:403