source: icGREP/icgrep-0.8/icgrep/symbol_generator.h @ 3850

Last change on this file since 3850 was 3850, checked in by cameron, 5 years ago

icgrep-0.8 distribution

File size: 614 bytes
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef SYMBOL_GENERATOR_H
8#define SYMBOL_GENERATOR_H
9
10#include <iostream>
11#include <string>
12#include <sstream>
13#include <utility>
14#include <map>
15
16#define INT2STRING(i) static_cast<std::ostringstream*>(&(std::ostringstream() << i))->str()
17
18class SymbolGenerator
19{
20public:
21    SymbolGenerator();
22    std::string gensym(std::string prefix);
23private:
24    std::map<std::string, int>* pfxmap;
25};
26
27#endif // SYMBOL_GENERATOR_H
Note: See TracBrowser for help on using the repository browser.