Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/gadget/readfunc.h
[mareframe] / trunk / gadget / readfunc.h Repository:
ViewVC logotype

View of /trunk/gadget/readfunc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 4 months ago) by agomez
File size: 1302 byte(s)
Initial version based on Gadget 2.2.00
#ifndef readfunc_h
#define readfunc_h

#include "doublematrix.h"
#include "areatime.h"
#include "charptrvector.h"
#include "formulamatrixptrvector.h"
#include "commentstream.h"

/**
 * \brief This is the function that will count the number of columns of data in a file
 * \param infile is the CommentStream to read the data from
 * \return number of columns of data in the file
 * \note This function currently counts the number of columns that the first line of data in the file has, and then assumes that the rest of the file has the same number of columns
 */
int countColumns(CommentStream& infile);
/**
 * \brief This is the function that will read reference weight data from a file into a matrix
 * \param infile is the CommentStream to read the data from
 * \param M is the DoubleMatrix that the reference weight data will be stored in
 */
void readRefWeights(CommentStream& infile, DoubleMatrix& M);
void readAmounts(CommentStream& infile, const IntVector& tmpareas,
  const TimeClass* const TimeInfo, const AreaClass* const Area,
  FormulaMatrix& amount, const char* givenname);
void readGrowthAmounts(CommentStream& infile, const TimeClass* const TimeInfo,
  const AreaClass* const Area, FormulaMatrixPtrVector& amount,
  const CharPtrVector& lenindex, const IntVector& tmpareas);

#endif




root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge