GnuCash  5.6-150-g038405b370+
Data Structures | Typedefs | Enumerations | Variables
gnc-import-price.hpp File Reference

Class to import prices from CSV or fixed width files. More...

#include "config.h"
#include "gnc-commodity.h"
#include <vector>
#include <set>
#include <map>
#include <memory>
#include <optional>
#include <cstdint>
#include "gnc-tokenizer.hpp"
#include "gnc-imp-props-price.hpp"
#include "gnc-imp-settings-csv-price.hpp"

Go to the source code of this file.

Data Structures

class  GncPriceImport
 The actual PriceImport class It's intended to use in the following sequence of actions: More...
 

Typedefs

using parse_line_t = std::tuple< StrVec, std::string, std::shared_ptr< GncImportPrice >, bool >
 Tuple to hold. More...
 

Enumerations

enum  parse_line_cols {
  PL_INPUT, PL_ERROR, PL_PREPRICE, PL_SKIP,
  PL_INPUT, PL_ERROR, PL_PRETRANS, PL_PRESPLIT,
  PL_SKIP
}
 An enum describing the columns found in a parse_line_t. More...
 

Variables

const int num_currency_formats_price
 
const gchar * currency_format_user_price []
 

Detailed Description

Class to import prices from CSV or fixed width files.

gnc-import-price.hpp

Author
Copyright (c) 2015 Geert Janssens geert.nosp@m.@kob.nosp@m.altwi.nosp@m.t.be
Copyright (c) 2017 Robert Fewell

Definition in file gnc-import-price.hpp.

Typedef Documentation

◆ parse_line_t

using parse_line_t = std::tuple<StrVec, std::string, std::shared_ptr<GncImportPrice>, bool>

Tuple to hold.

  • a tokenized line of input
  • an optional error string
  • a struct to hold user selected properties for a price

Definition at line 70 of file gnc-import-price.hpp.

Enumeration Type Documentation

◆ parse_line_cols

An enum describing the columns found in a parse_line_t.

Currently these are:

  • a tokenized line of input
  • an optional error string
  • a struct to hold user selected properties for a price
  • a boolean to mark the line as skipped by error and/or user or not

Definition at line 56 of file gnc-import-price.hpp.

56  {
57  PL_INPUT,
58  PL_ERROR,
59  PL_PREPRICE,
60  PL_SKIP
61 };