Station API

Dependents:   GMCStation

Embed: (wiki syntax)

« Back to documentation index

Utils Class Reference

Utils Class Reference

Utility functions. More...

#include <Utils.h>

Static Public Member Functions

static int encodeFormUrl (char *s, char *t)
 encodes string in percent encoding
static void encodeBase64 (char ibuf[], int length, char *obuf)
 encodes data to BASE64 string
static void encodeBase64 (char *ibuf, char *obuf)
 encodes string to BASE64 string
static bool fgetValues (FILE *fp, const char *pattern,...)
 gets values from a file according to the specified pattern format

Detailed Description

Utility functions.

Definition at line 33 of file Utils.h.


Member Function Documentation

static void encodeBase64 ( char  ibuf[],
int  length,
char *  obuf 
) [static]

encodes data to BASE64 string

Parameters:
ibufinput buffer
lengthlength of the input data
obufoutput buffer

Definition at line 64 of file Utils.h.

static void encodeBase64 ( char *  ibuf,
char *  obuf 
) [static]

encodes string to BASE64 string

Parameters:
ibufinput string buffer
obufoutput buffer

Definition at line 83 of file Utils.h.

static int encodeFormUrl ( char *  s,
char *  t 
) [static]

encodes string in percent encoding

Parameters:
ssource string
tencoded string

Definition at line 41 of file Utils.h.

static bool fgetValues ( FILE *  fp,
const char *  pattern,
  ... 
) [static]

gets values from a file according to the specified pattern format

Parameters:
fppointer to the input FILE
patternscanf format string, followed by variables to store the retrieved data

Definition at line 93 of file Utils.h.