source: cpp/_old/f8-to-f1/conv_f8_utils.h @ 207

Last change on this file since 207 was 193, checked in by Maciej Komosinski, 11 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1/*
2 *  conv_f8_utils.h
3 *  L-systemToF1
4 *
5 *  Created by Maciej Wajcht on 08-09-21.
6 *  Copyright 2008 __MyCompanyName__. All rights reserved.
7 *
8 */
9
10#ifndef _CONV_F8_UTILS_H_
11#define _CONV_F8_UTILS_H_
12
13#include <iostream>
14#include <sstream>
15#include <string>
16#include <stdexcept>
17#include <stack>
18#include <vector>
19#include "sstring.h"
20
21using namespace std;
22
23class BadConversion : public std::runtime_error {
24public:
25        BadConversion(const std::string &s) : std::runtime_error(s)     { }
26};
27
28class ParseExpressionException : public std::runtime_error {
29public:
30        ParseExpressionException(const std::string &s) : std::runtime_error(s) { }
31};
32
33bool containsChars(const SString s, char c[]);
34bool containsChar(std::vector<char> tab, char c);
35int reverseFindInSString(const SString s, char c, int index = -1);
36SString trimSString(const SString s);
37SString trimSString(const SString s);
38double parseDouble(const SString &s);
39int parseInt(const SString &s);
40SString stringToSString(string str);
41string sstringToString(SString sstr);
42SString convertReversePolishNotationToNatural(const SString &s);
43double parseExpression(const SString &s);
44
45#endif
Note: See TracBrowser for help on using the repository browser.