cloudy
trunk
|
#include <string>
#include <vector>
Go to the source code of this file.
Enumerations | |
enum | split_mode { SPM_RELAX, SPM_KEEP_EMPTY, SPM_STRICT } |
Functions | |
void | trimTrailingWhiteSpace (std::string &str) |
void | trimTrailingWhiteSpace (char *str) |
void | Split (const std::string &str, const std::string &sep, std::vector< std::string > &lst, split_mode mode) |
bool | FindAndReplace (string &str, const string &substr, const string &newstr) |
bool | FindAndErase (string &str, const string &substr) |
void | service (double tau, double a, double beta) |
void | wr_block (const void *ptr, size_t len, FILE *fdes) |
void | wr_block (const void *ptr, size_t len, const char *fnam) |
void | rd_block (void *ptr, size_t len, FILE *fdes) |
void | rd_block (void *ptr, size_t len, const char *fnam) |
enum split_mode |
split_mode defines how the routine Split generates substrings SPM_RELAX: multiple adjacent separators will be coalesced into one this way you can never get an empty substring SPM_KEEP_EMPTY: multiple adjacent separators will result in empty substrings to be added to the list SPM_STRICT: empty substrings are illegal
Enumerator | |
---|---|
SPM_RELAX | |
SPM_KEEP_EMPTY | |
SPM_STRICT |
|
inline |
Definition at line 39 of file service.h.
References FindAndReplace().
|
inline |
Definition at line 29 of file service.h.
Referenced by FindAndErase(), t_cpu_i::getMD5sums(), and t_cpu_i::t_cpu_i().
|
inline |
rd_block: read <len> bytes of data into buffer <ptr> from open binary FILE <fdes>
Definition at line 70 of file service.h.
References cdEXIT, and EXIT_FAILURE.
Referenced by phymir_state< X, Y, NP, NSTR >::p_process_output(), process_output(), and rd_block().
|
inline |
rd_block: read <len> bytes of data into buffer <*ptr> from unformatted file <fnam>
Definition at line 82 of file service.h.
References AS_LOCAL_ONLY, open_data(), and rd_block().
void service | ( | double | tau, |
double | a, | ||
double | beta | ||
) |
void Split | ( | const std::string & | str, |
const std::string & | sep, | ||
std::vector< std::string > & | lst, | ||
split_mode | mode | ||
) |
Split: split a string into substrings using "sep" as separator
void trimTrailingWhiteSpace | ( | std::string & | str | ) |
void trimTrailingWhiteSpace | ( | char * | str | ) |
Definition at line 165 of file service.cpp.
|
inline |
wr_block: write <len> bytes of data from buffer <ptr> into open binary FILE <fdes>
Definition at line 48 of file service.h.
References cdEXIT, and EXIT_FAILURE.
Referenced by phymir_state< X, Y, NP, NSTR >::p_execute_job_parallel(), saveFITSfile(), and wr_block().
|
inline |
wr_block: write <len> bytes of data from buffer <*ptr> into unformatted file <fnam>
Definition at line 60 of file service.h.
References open_data(), and wr_block().