Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.JsonInterface {
|
---|
4 | public interface IResultFormatter {
|
---|
5 | /// <summary>
|
---|
6 | /// A given priority, higher numbers are prior.
|
---|
7 | /// </summary>
|
---|
8 | int Priority { get; }
|
---|
9 |
|
---|
10 | /// <summary>
|
---|
11 | /// Checks if the given type can be formatted
|
---|
12 | /// </summary>
|
---|
13 | /// <param name="t"></param>
|
---|
14 | /// <returns></returns>
|
---|
15 | bool CanFormatType(Type t);
|
---|
16 |
|
---|
17 | /// <summary>
|
---|
18 | /// The format method which formats and object into a string (which can be saved in a JSON file).
|
---|
19 | /// </summary>
|
---|
20 | /// <param name="o"></param>
|
---|
21 | /// <returns></returns>
|
---|
22 | string Format(object o);
|
---|
23 | }
|
---|
24 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.