Flow123d  DF_patch_fe_data_tables-dc76198
Classes | Namespaces | Typedefs | Functions
unit_converter.hh File Reference
#include <map>
#include <string>
#include <vector>
#include "tools/unit_si.hh"
#include "input/input_exception.hh"
#include "system/asserts.hh"
#include "system/exceptions.hh"
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
 

Namespaces

 Input
 Abstract linear system class.
 
 Input::Type
 

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

◆ UnitData

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

Definition at line 65 of file unit_converter.hh.

Function Documentation

◆ DECLARE_INPUT_EXCEPTION() [1/2]

DECLARE_INPUT_EXCEPTION ( ExcInvalidUnit  ,
<< "Invalid definition of unit: "<< EI_UnitDefinition::qval<< "\n"<< EI_UnitError::val<< ".\n"   
)

◆ DECLARE_INPUT_EXCEPTION() [2/2]

DECLARE_INPUT_EXCEPTION ( ExcNoncorrespondingUnit  ,
<< "Non-corresponding definition of unit: "<< EI_UnitDefinition::qval<< "\nExpected: unit with base format "<< EI_ExpectedUnit::qval<< ".\n"   
)

◆ TYPEDEF_ERR_INFO() [1/3]

TYPEDEF_ERR_INFO ( EI_ExpectedUnit  ,
std::string   
)

◆ TYPEDEF_ERR_INFO() [2/3]

TYPEDEF_ERR_INFO ( EI_UnitDefinition  ,
std::string   
)

◆ TYPEDEF_ERR_INFO() [3/3]

TYPEDEF_ERR_INFO ( EI_UnitError  ,
std::string   
)