WPOCT Software Developer's Kit (SDK)
SDK For using Wasatch Photonics OCT Spectrometers
Functions
Helper.cpp File Reference

Utility functions. More...

#include "stdafx.h"
#include <boost/algorithm/string.hpp>
#include <boost/thread/thread.hpp>
#include <boost/filesystem/operations.hpp>
#include <iostream>
#include "FileUtils.h"
#include "Helper.h"
Include dependency graph for Helper.cpp:

Functions

void Waitms (int val)
 
bool ParseBool (const char *cstr)
 
int ParseNumberInt (const char *cstr)
 
double ParseNumberDouble (const char *cstr)
 
std::string GetFilledDigits (int number, size_t totalDigits)
 Gets the string prefixed with zeros so the string is a certain length. More...
 
std::string GetUserProfile ()
 
void GetFullPathName (const char *rpstr, char *&ret_buff, int buffLen)
 
void GetFullPathName (const char *rpstr, const char *ipstr, char *&ret_buff, int buffLen)
 
std::string GetFullPathName (std::string relativePathName, std::string initPath)
 
void StringToLower (std::string &str)
 
void StringToUpper (std::string &str)
 
void smessage (std::string msg)
 

Detailed Description

Utility functions.

Function Documentation

◆ GetFilledDigits()

std::string GetFilledDigits ( int  number,
size_t  totalDigits 
)

Gets the string prefixed with zeros so the string is a certain length.

Gets the string prefixed with zeros so the string is a certain length.

Parameters
numberThe number to convert to a string.
totalDigitsThe total length to make the string.
Returns