diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-01-05 19:27:47 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-01-05 19:27:47 +0000 |
commit | e1eb3c873ae012fcfaec214d936d66328218ce71 (patch) | |
tree | d89a40f9d3052bd90946717611f78508d0fb92c0 | |
parent | Extract conversions from any metadata (diff) | |
download | slicer-e1eb3c873ae012fcfaec214d936d66328218ce71.tar.bz2 slicer-e1eb3c873ae012fcfaec214d936d66328218ce71.tar.xz slicer-e1eb3c873ae012fcfaec214d936d66328218ce71.zip |
Typedef conversion list
-rw-r--r-- | slicer/slicer/parser.cpp | 4 | ||||
-rw-r--r-- | slicer/slicer/parser.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/slicer/slicer/parser.cpp b/slicer/slicer/parser.cpp index d401f5b..d84b248 100644 --- a/slicer/slicer/parser.cpp +++ b/slicer/slicer/parser.cpp @@ -428,10 +428,10 @@ namespace Slicer { } - std::vector<Slicer::ConversionSpec> + Slicer::Conversions Slicer::getConversions(const std::list<std::string> & dm) { - std::vector<ConversionSpec> rtn; + Conversions rtn; auto conversions = metaDataValues("slicer:conversion:", dm); for (const auto & conversion : conversions) { auto split = metaDataSplit(conversion); diff --git a/slicer/slicer/parser.h b/slicer/slicer/parser.h index a29ede9..9d880d8 100644 --- a/slicer/slicer/parser.h +++ b/slicer/slicer/parser.h @@ -16,6 +16,7 @@ namespace Slicer { std::string ConvertToModelFunc; std::string ConvertToExchangeFunc; }; + typedef std::vector<ConversionSpec> Conversions; Slicer(FILE * c); @@ -48,7 +49,7 @@ namespace Slicer { void defineConversions(Slice::DataMemberPtr dm) const; void copyMetadata(const std::list<std::string> & metadata) const; - static std::vector<ConversionSpec> getConversions(const std::list<std::string> & metadata); + static Conversions getConversions(const std::list<std::string> & metadata); unsigned int components; FILE * cpp; |