summaryrefslogtreecommitdiff
path: root/ACE/examples/Web_Crawler/URL_Status.cpp
blob: 79190a5f9f39114c9d3f77f4d9e0e644f68baad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* -*- C++ -*- */
// $Id$

#include "URL_Status.h"



URL_Status::URL_Status (STATUS_CODE code)
  : status_ (code)
{
}

URL_Status::URL_Status (const URL_Status &s)
  : status_ (s.status_)
{
}

URL_Status::STATUS_CODE
URL_Status::status (void) const
{
  return this->status_;
}

void
URL_Status::status (int s)
{
  this->status_ = URL_Status::STATUS_CODE (s);
}

void
URL_Status::status (URL_Status::STATUS_CODE s)
{
  this->status_ = s;
}

int URL_Status::destroy (void)
{
  delete this;
  return 0;
}