Flow123d  release_2.2.0-914-gf1a3a4f
Classes | Typedefs | Functions
unit_converter.hh File Reference
#include <vector>
#include <string>
#include <map>
#include "input/input_exception.hh"
#include "fields/unit_si.hh"
#include "system/xio.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Factor
 Store structure given by parser. More...
 
struct  Formula
 
class  BasicFactors
 Helper class. Defines basic factors of SI, non-SI and derived units. More...
 
struct  BasicFactors::DerivedUnit
 
class  UnitConverter
 

Typedefs

typedef std::map< std::string, struct FormulaUnitData
 

Functions

 TYPEDEF_ERR_INFO (EI_UnitDefinition, std::string)
 
 TYPEDEF_ERR_INFO (EI_ExpectedUnit, std::string)
 
 TYPEDEF_ERR_INFO (EI_UnitError, std::string)
 
 DECLARE_INPUT_EXCEPTION (ExcInvalidUnit,<< "Invalid definition of unit: "<< EI_UnitDefinition::qval<< "\n"<< EI_UnitError::val<< ".\n")
 
 DECLARE_INPUT_EXCEPTION (ExcNoncorrespondingUnit,<< "Non-corresponding definition of unit: "<< EI_UnitDefinition::qval<< "\nExpected: unit with base format "<< EI_ExpectedUnit::qval<< ".\n")
 

Detailed Description

 * Copyright (C) 2015 Technical University of Liberec. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Definition in file unit_converter.hh.

Typedef Documentation

typedef std::map<std::string, struct Formula> UnitData

Definition at line 57 of file unit_converter.hh.

Function Documentation

DECLARE_INPUT_EXCEPTION ( ExcInvalidUnit  ,
<< "Invalid definition of unit: "<< EI_UnitDefinition::qval<< "\n"<< EI_UnitError::val<< ".\n"   
)
DECLARE_INPUT_EXCEPTION ( ExcNoncorrespondingUnit  ,
<< "Non-corresponding definition of unit: "<< EI_UnitDefinition::qval<< "\nExpected: unit with base format "<< EI_ExpectedUnit::qval<< ".\n"   
)
TYPEDEF_ERR_INFO ( EI_UnitDefinition  ,
std::string   
)
TYPEDEF_ERR_INFO ( EI_ExpectedUnit  ,
std::string   
)
TYPEDEF_ERR_INFO ( EI_UnitError  ,
std::string   
)