julian::DataEntryClerk Class Reference

Class used to provide data to julian::DataFrame. More...

#include <dataFrame.hpp>

Public Member Functions

 DataEntryClerk ()
 Default constructor. More...
 
void add (std::string, std::string)
 adds a string input More...
 
void add (std::string, double)
 adds a double input More...
 
void add (std::string, int)
 adds a int input More...
 
void add (std::string, Date)
 adds a date input More...
 
void add (std::string, Tenor)
 adds a tenor input More...
 
template<typename T >
void add (const std::map< std::string, T > &input)
 add a map to data More...
 

Private Attributes

std::map< std::string, std::string > data_
 Maps that stores inputs provided using method DataEntryClerk::add. More...
 

Friends

class DataFrame
 

Detailed Description

Class used to provide data to julian::DataFrame.

Class saves input provided by user. Data Clark passed as argument to julian::DataFrame::append adds a new data row to DataFrame. Keys of the map are interpreted as column names and values as observation inputs.

Examples:
DataFrameExample.cpp, interpolationExample.cpp, and optionPricingExample.cpp.

Constructor & Destructor Documentation

julian::DataEntryClerk::DataEntryClerk ( )
inline

Default constructor.

Member Function Documentation

void julian::DataEntryClerk::add ( std::string  col,
std::string  input 
)
void julian::DataEntryClerk::add ( std::string  col,
double  input 
)

adds a double input

void julian::DataEntryClerk::add ( std::string  col,
int  input 
)

adds a int input

void julian::DataEntryClerk::add ( std::string  col,
Date  input 
)

adds a date input

void julian::DataEntryClerk::add ( std::string  col,
Tenor  input 
)

adds a tenor input

template<typename T >
void julian::DataEntryClerk::add ( const std::map< std::string, T > &  input)
inline

add a map to data

Method adds map to the . The values of the map provided must be one of the type accepted by julian::DataFrame::add methods

Member Data Documentation

std::map<std::string, std::string> julian::DataEntryClerk::data_
private

Maps that stores inputs provided using method DataEntryClerk::add.


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/jULIAN/src/utils/dataFrame.hpp
  • C:/Unix/home/OEM/jULIAN/src/utils/dataFrame.cpp