Hi All,
I can answer my question myself <:o)
readTitle needs to be set to false. In order to get no exception the
delimiter needs to be set, as well:
deserializer.delimiter(',');
deserializer.readTitle(false);
Sorry for the traffic.
Andreas
On 10/22/2013 09:45 PM, Andreas Welchlin wrote:
> Hi List,
>
> I used the CsvDeserializer like:
>
> snip --------------------------------------------------
> typedef std::vector<std::string> StrVec;
> typedef StrVec::iterator StrVecIt;
> typedef std::vector<StrVec> Str2Vec;
> typedef Str2Vec::iterator Str2VecIt;
>
> Str2Vec data;
> std::ifstream in("test.csv");
> cxxtools::CsvDeserializer deserializer(in);
> deserializer.readTitle(true);
> deserializer.deserialize(data);
> snap --------------------------------------------------
>
> The deserializer ignores the first line. For this reason i set readTitle
> to true, but this does not show the expected behaviour.
>
> Any thoughts?
>
> Regards,
> Andreas
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general