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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,f23beed6d550d20d X-Google-Thread: 103376,aaee47ff04b98ae5 X-Google-Attributes: gid109fba,gid103376,public X-Google-ArrivalTime: 2004-04-25 18:14:26 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!irazu.switch.ch!switch.ch!news.grnet.gr!news.ntua.gr!not-for-mail From: "Ioannis Vranos" Newsgroups: comp.lang.c++,comp.lang.ada Subject: Re: "Ravenscar-like" profile for C/C++ Date: Mon, 26 Apr 2004 04:14:26 +0300 Organization: National Technical University of Athens, Greece Message-ID: References: NNTP-Posting-Host: athedsla-0385.otenet.gr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ulysses.noc.ntua.gr 1082942065 30296 62.103.65.131 (26 Apr 2004 01:14:25 GMT) X-Complaints-To: usenet@ulysses.noc.ntua.gr NNTP-Posting-Date: Mon, 26 Apr 2004 01:14:25 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Xref: archiver1.google.com comp.lang.c++:31642 comp.lang.ada:7492 Date: 2004-04-26T04:14:26+03:00 List-Id: "Jack Klein" wrote in message news:ev7o80lpud3gfmicusomjs5std2a0dimga@4ax.com... > > The phrase you used in the part of your overly long > pedantic message that I snipped, "mission critical applications", is > not, never has been, and never will be remotely similar. In fact, it > is nothing more than a marketing buzz word. Why marketing buzz word? You can do something like: #include #include #include class DictionaryFileException { }; class dictionaryFile { std::ifstream dicFile; std::string dicFileName; public: dictionaryFile(const std::string &filePath) throw (DictionaryFileException) { dicFileName=filePath; dicFile.open(filePath.c_str()); if(dicFile.fail()) throw DictionaryFileException(); FileValidation(); } void FileValidation() throw (DictionaryFileException) { using namespace std; char input[256]; do { dicFile.get(input,256); if(isspace(input[0]) or (input[0]=='\\' and input[1]=='\\')) continue; else if(!isalpha(input[0]) and !isdigit(input[0])) throw DictionaryFileException(); }while(!dicFile.eof()); } }; C++ provides the necessary structures to built very reliable, efficient and mission critical systems. In the above i define what exceptions are expected from each member function, and we can also use the Resrource Aquisition is Initializatization technique which the standard library itself also uses. Ioannis Vranos