VAPoR  3.0.0
Classes | Namespaces | Macros | Functions | Variables
MyBase.h File Reference
#include <cmath>
#include <cstdarg>
#include <string>
#include <cstring>
#include <vector>
#include <vapor/common.h>

Go to the source code of this file.

Classes

class  VetsUtil::MyBase
 VetsUtil base class. More...
 

Namespaces

 VetsUtil
 

Macros

#define FSEEK64   fseek64
 
#define FOPEN64   fopen64
 
#define STAT64_T   stat64
 
#define STAT64   stat64
 
#define TIME64_T   int64_t
 

Functions

COMMON_API int VetsUtil::IsOdd (int x)
 
COMMON_API int VetsUtil::IsPowerOfTwo (unsigned int x)
 Return true if power of two. More...
 
COMMON_API int VetsUtil::Min (int a, int b)
 
COMMON_API int VetsUtil::Max (int a, int b)
 
COMMON_API size_t VetsUtil::Min (size_t a, size_t b)
 
COMMON_API size_t VetsUtil::Max (size_t a, size_t b)
 
COMMON_API float VetsUtil::Min (float a, float b)
 
COMMON_API float VetsUtil::Max (float a, float b)
 
COMMON_API double VetsUtil::Min (double a, double b)
 
COMMON_API double VetsUtil::Max (double a, double b)
 
COMMON_API double VetsUtil::LogBaseN (double x, double n)
 
COMMON_API int VetsUtil::ILog2 (int n)
 
COMMON_API int VetsUtil::StrCmpNoCase (const string &s, const string &t)
 Case-insensitive string comparison. More...
 
COMMON_API void VetsUtil::StrRmWhiteSpace (string &s)
 Remove white space from a string. More...
 
COMMON_API void VetsUtil::StrToWordVec (const string &s, vector< string > &v)
 Parse a string, returning a vector of words. More...
 
std::vector< std::string > & VetsUtil::SplitString (const std::string &s, char delim, std::vector< std::string > &elems)
 
std::vector< size_t > & VetsUtil::SplitString (const std::string &s, char delim, std::vector< size_t > &elems)
 
std::vector< int > & VetsUtil::SplitString (const std::string &s, char delim, std::vector< int > &elems)
 
std::vector< float > & VetsUtil::SplitString (const std::string &s, char delim, std::vector< float > &elems)
 
std::vector< double > & VetsUtil::SplitString (const std::string &s, char delim, std::vector< double > &elems)
 
COMMON_API unsigned long long VetsUtil::GetBits64 (unsigned long long targ, int pos, int n)
 
COMMON_API unsigned long long VetsUtil::SetBits64 (unsigned long long targ, int pos, int n, unsigned long long src)
 
COMMON_API double VetsUtil::ran1 (long *)
 

Variables

const float VetsUtil::ABOVE_GRID = 0.f
 
const float VetsUtil::BELOW_GRID = 0.f
 

Macro Definition Documentation

#define FOPEN64   fopen64

Definition at line 423 of file MyBase.h.

#define FSEEK64   fseek64

Definition at line 408 of file MyBase.h.

#define STAT64   stat64

Definition at line 449 of file MyBase.h.

#define STAT64_T   stat64

Definition at line 448 of file MyBase.h.

#define TIME64_T   int64_t

Definition at line 457 of file MyBase.h.