Added ColorMap definition.

This commit is contained in:
Miroslav Bendík 2012-08-23 12:32:59 +02:00
parent 375812ea15
commit 6a4083d28c
1 changed files with 5 additions and 3 deletions

View File

@ -23,9 +23,11 @@ struct Color {
uint8_t b;
};
map<string, Color> parse_colors()
typedef map<string, Color> ColorMap;
ColorMap parse_colors()
{
map<string, Color> parsed;
ColorMap parsed;
ifstream in;
in.open("colors.txt", ifstream::in);
@ -155,5 +157,5 @@ int main(int argc, char *argv[])
}
}
map<string, Color> colors = parse_colors();
ColorMap colors = parse_colors();
}