GnuCash c935c2f+
Loading...
Searching...
No Matches
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.
 

Enumerations

enum  parse_line_cols { PL_INPUT , PL_ERROR , PL_PREPRICE , 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 67 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};

Variable Documentation

◆ currency_format_user_price

const gchar* currency_format_user_price[]
extern

Definition at line 57 of file gnc-import-price.cpp.

57 {N_("Locale"),
58 N_("Period: 123,456.78"),
59 N_("Comma: 123.456,78")
60 };

◆ num_currency_formats_price

const int num_currency_formats_price
extern

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