From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.2.72 with SMTP id 8mr74520igs.2.1429911641301; Fri, 24 Apr 2015 14:40:41 -0700 (PDT) X-Received: by 10.140.98.175 with SMTP id o44mr6388qge.33.1429911641270; Fri, 24 Apr 2015 14:40:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!l13no9678833iga.0!news-out.google.com!a41ni839qgf.1!nntp.google.com!z60no3572699qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 24 Apr 2015 14:40:41 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.240.246.10; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 87.240.246.10 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <47c7df1e-17c1-44cb-a455-43431f0d39cd@googlegroups.com> Subject: Annoying behavior From: Laurent Injection-Date: Fri, 24 Apr 2015 21:40:41 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:25602 Date: 2015-04-24T14:40:41-07:00 List-Id: Hi Trying to build a program which generates this type of txt files: <- 28/02/2015-07:58:28 -> <- <- mtrsl|pi1900123456789|p2164|pp907088|p5907088|si|s040330|ssPLAIES|s5PLAIES|ci501 <- 1234|c040330|ctAERO|ta|rtAST-N264|rr10335191|t12|o1esccol|ra|a1tem|a3<=4|a4 <- S|ra|a1am|a34|a4S|ra|a1amc|a34|a4S|ra|a1tzp|a3<=4|a4S|ra|a1rox|a34|a4S|ra|a1tax| <- a3<=1|a4S|ra|a1taz|a3<=1|a4S|ra|a1fep|a3<=1|a4S|ra|a1etp|a3<=0,5|a4S|ra|a1mem|a3 <- <=0,25|a4S|ra|a1an|a3<=2|a4S|ra|a1gm|a3<=1|a4S|ra|a1cip|a3<=0,25|a4S|ra|a1lev|a3 <- <=0,12|a4S|ra|a1tgc|a3<=0,5|a4S|ra|a1fos|a3<=16|a4S|ra|a1ftn|a3<=16|a4S|ra|a1sxt <- |a3<=20|a4S|zz| <- 9c <- -> <- 28/02/2015-07:58:29 For the moment I try to get the part done which generates the content in the middle of the file, the results behind the a1,13 and a4th. Which correspond to the antibiotic LIS code, the MIC and the sensibility. The annoying behavior (for me, perhaps it is absolutely normal) I get is this while I try to read in the configuration file ( too many drug names to keep entering them manually): laurent-lutgens-mac-pro-2:Build laurent$ ./generateur_trame_vt2 Begin of reading loop read name: Amikacine read code: am read cmi: test read sir: S Begin of reading loop raised ANTIBIOTIQUES.NAME_TOO_SHORT : antibiotiques.adb:90 So the first antibiotic is read but then something blows up. Has to to with the SIR which is an enumeration. The others are strings. If I remove the SIR's from the config file then all items are read. I am a bit lost because I don't understand what the reading procedure is getting to fail like this. Putting a Skip_Line behind doesn't help, makes things even worse. Another strange behavior (for me, perhaps it is absolutely normal) is this one: laurent-lutgens-mac-pro-2:Build laurent$ ./generateur_trame_vt2 Begin of reading loop read name: Amikacine read code: amk read cmi: testtest Begin of reading loop read name: Augkacine <-- should be "Aug" read code: pmk <-- should be "p" read cmi: 123ttest <-- should be "123" Displaying configuration Amikacine amk testtest Augkacine pmk 123ttest If I put spaces behind the name, code and cmi to fill up to the max length of the fields then it doesn't happen. I have a suspicion where this could come from but I am not sure and have no clue how to solve this. https://github.com/Chutulu/Generateur-Trame-Vitek.git Thanks Laurent