ReMAS  1.5
Real-time Musical Accompaniment System
Macros | Functions
FileFunctions.h File Reference

Header file with auxiliar functions using by ReMAS, both CPU and GPU. More...

#include "defines.h"

Go to the source code of this file.

Functions

int ReadParameters (DTWconst *, DTWfiles *, const char *)
 ReadParameters reads ReMAS global parameters from file. More...
 
int ReadVector (MyType *, const int, const char *)
 ReadVector fills a MyType vector with the MyType info stores in a file. More...
 
int ReadVectorInt64 (int *, const int, const char *)
 ReadVectorInt64 fills a int vector with the int64 info stores in a file. More...
 
int ReadS_fk (MyType *, const int, const char *)
 ReadS_fk fills the vector s_fk with the info stores in a file. More...
 
void FreeFiles (DTWfiles *)
 FreeFiles frees the reserved memory of a struct. More...
 

Detailed Description

Header file with auxiliar functions using by ReMAS, both CPU and GPU.

Author
Information Retrieval and Parallel Computing Group, University of Oviedo, Spain
Interdisciplinary Computation and Communication Group, Universitat Politecnica de Valencia, Spain
Signal Processing and Telecommunication Systems Research Group, University of Jaen, Spain.
Contact: remas.nosp@m.pack.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
February 13, 2017

Definition in file FileFunctions.h.

Function Documentation

◆ FreeFiles()

void FreeFiles ( DTWfiles NameFiles)

FreeFiles frees the reserved memory of a struct.

Parameters
NameFiles(inout) Name os the struct
Returns
: Nothing, it is void

Definition at line 268 of file FileFunctions.c.

◆ ReadParameters()

int ReadParameters ( DTWconst Param,
DTWfiles NameFiles,
const char *  filename 
)

ReadParameters reads ReMAS global parameters from file.

Parameters
Param(out) Struct where read information (general ReMAS parameters) are stored
NameFiles(out) Struct where read filenames (with input/output general ReMAS info) are stored
filename(in) Name of the file with general configuration input information for ReMAS
Returns
: 0 if all is OK, otherwise a code error (see defines.h)

Definition at line 48 of file FileFunctions.c.

◆ ReadS_fk()

int ReadS_fk ( MyType *  s_fk,
const int  BASES,
const char *  filename 
)

ReadS_fk fills the vector s_fk with the info stores in a file.

Parameters
s_fk(out) Vector s_fk to store the data
BASES(in) Number of BASES
filename(in) Name of the file with the information
Returns
: 0 if all is OK, otherwise a code error (see defines.h)

Definition at line 228 of file FileFunctions.c.

◆ ReadVector()

int ReadVector ( MyType *  vector,
const int  size,
const char *  filename 
)

ReadVector fills a MyType vector with the MyType info stores in a file.

Parameters
vector(out) Vector of type MyType (see defines.h) to store the data
size(in) Number of elements to read
filename(in) Name of the file with the information
Returns
: 0 if all is OK, otherwise a code error (see defines.h)

Definition at line 144 of file FileFunctions.c.

◆ ReadVectorInt64()

int ReadVectorInt64 ( int *  vector,
const int  size,
const char *  filename 
)

ReadVectorInt64 fills a int vector with the int64 info stores in a file.

Parameters
vector(out) Vector to store the data
size(in) Number of elements to read
filename(in) Name of the file with the information
Returns
: 0 if all is OK, otherwise a code error (see defines.h)

Definition at line 185 of file FileFunctions.c.