"Fossies" - the Fresh Open Source Software Archive

Member "OpenSP-1.5.2/lib/SearchResultMessageArg.cxx" (21 Jul 2005, 627 Bytes) of package /linux/misc/old/OpenSP-1.5.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "SearchResultMessageArg.cxx" see the Fossies "Dox" file reference documentation.

    1 // Copyright (c) 1995 James Clark
    2 // See the file COPYING for copying permission.
    3 
    4 #ifdef __GNUG__
    5 #pragma implementation
    6 #endif
    7 
    8 #include "splib.h"
    9 #include "SearchResultMessageArg.h"
   10 
   11 #ifdef SP_NAMESPACE
   12 namespace SP_NAMESPACE {
   13 #endif
   14 
   15 RTTI_DEF1(SearchResultMessageArg, OtherMessageArg);
   16 
   17 SearchResultMessageArg::SearchResultMessageArg()
   18 {
   19 }
   20 
   21 MessageArg *SearchResultMessageArg::copy() const
   22 {
   23   return new SearchResultMessageArg(*this);
   24 }
   25 
   26 void SearchResultMessageArg::add(StringC &str, int n)
   27 {
   28   filename_.resize(filename_.size() + 1);
   29   str.swap(filename_.back());
   30   errno_.push_back(n);
   31 }
   32 
   33 #ifdef SP_NAMESPACE
   34 }
   35 #endif