test_CSV.cpp File Reference

Test ==> CSV. More...

#include "BUnit.h"
#include "CSV_line.h"
#include <iostream>
#include <sstream>
#include "CSV.c"

Go to the source code of this file.

Classes

class  test_CSV
 Test ==> CSV. More...

Defines

#define C_CSV
#define DIM(V)   (sizeof(V) / sizeof(*V))
 Cantidad de elementos del vector V[].
#define googa   std::cout << "trim(" << str << ")==> ["; std::cout << trim(str) << ']' << std::endl;

Functions

void mem_istring (std::string &res, std::string &str)
 Shows the correct way to read str usign sstream.
int main ()
 Main program that executes the tests.


Detailed Description

Test ==> CSV.

Author:
Adolfo Di Mare <adolfo@di-mare.com>
Date:
2008.
Author:
A11788 Jose David Hine Gomez <david@hine.tk>

A24444 Cristopher Rojas Salas <crisrojassalas@gmail.com>

A56254 Carlos Jose Watson Morua <carlos.watson@yahoo.com>

A61166 Adrian Ignacio Campos Oviedo <flippercallcampos@yahoo.com>

A61196 Tabare Capitan Jimenez <tcjucrecci@gmail.com>

A71569 Sergio Esteban Castillo Segura <scmaverick2002@yahoo.com>

A73869 Pablo Ignacio Matamoros Sanchez <pollmts@gmail.com>

A74668 Erick Abdiel Orestes Chaves <erborc06@yahoo.com>

A76944 Alexander Vega Sanou <a_vega_sanou@hotmail.com>

Definition in file test_CSV.cpp.


Define Documentation

#define C_CSV

Definition at line 23 of file test_CSV.cpp.

#define DIM (  )     (sizeof(V) / sizeof(*V))

Cantidad de elementos del vector V[].

  • DIM() no se puede implementar con plantillas...

Definition at line 69 of file test_CSV.cpp.

#define googa   std::cout << "trim(" << str << ")==> ["; std::cout << trim(str) << ']' << std::endl;


Function Documentation

void mem_istring ( std::string &  res,
std::string &  str 
)

Shows the correct way to read str usign sstream.

  • A basic_istringstream<> is used to read from str.
  • The result gets stored into res.
  • Reading is done using operator<<().

Definition at line 613 of file test_CSV.cpp.

int main (  ) 

Main program that executes the tests.

Definition at line 678 of file test_CSV.cpp.


Generated on Wed May 27 11:04:47 2009 for CSV: by  doxygen 1.5.8