BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
CONCEPT
client.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_CONCEPT_CLIENT_H
6
#define BALL_CONCEPT_CLIENT_H
7
8
#ifndef BALL_COMMON_H
9
# include <
BALL/common.h
>
10
#endif
11
12
#ifndef BALL_CONCEPT_COMPOSITE_H
13
# include <
BALL/CONCEPT/composite.h
>
14
#endif
15
16
#ifndef BALL_SYSTEM_NETWORKING_H
17
# include <
BALL/SYSTEM/networking.h
>
18
#endif
19
20
#ifndef BALL_CONCEPT_PERSISTENTOBJECT_H
21
# include <
BALL/CONCEPT/persistentObject.h
>
22
#endif
23
24
#ifndef BALL_CONCET_TEXTPERSISTENCEMANAGER_H
25
# include <
BALL/CONCEPT/textPersistenceManager.h
>
26
#endif
27
28
#define DEFAULT_PORT 20000
29
30
namespace
BALL
31
{
47
class
BALL_EXPORT
Client
48
{
49
public
:
50
57
enum
Command
58
{
60
COMMAND__UNKOWN = 0,
61
63
COMMAND__SEND_OBJECT = 1,
64
66
NUMBER_OF_COMMANDS
67
};
68
72
78
class
BALL_EXPORT
InvalidClient
79
:
public
Exception::GeneralException
80
{
81
public
:
82
InvalidClient
(
const
char
* file,
int
line);
83
};
84
91
class
BALL_EXPORT
NoPersistentObject
92
:
public
Exception::GeneralException
93
{
94
public
:
95
NoPersistentObject
(
const
char
* file,
int
line);
96
};
97
99
102
109
Client
();
110
122
Client
(
const
String
& host,
int
port = 20000);
123
125
127
130
virtual
~
Client
();
131
135
virtual
void
clear();
136
138
141
148
void
connect(
const
String
& host,
int
port = 20000);
149
164
void
insert(
Composite
&composite);
166
169
178
virtual
bool
isValid()
const
;
179
186
virtual
void
dump(std::ostream& s = std::cout,
Size
depth = 0)
const
;
187
189
190
private
:
191
192
String
host_;
193
int
port_;
194
195
TextPersistenceManager
pm_;
196
};
197
198
}
// namespace BALL
199
200
#endif // BALL_CONCEPT_CLIENT_H
BALL::String
Definition:
string.h:61
BALL::Composite
Definition:
composite.h:71
BALL::Client
Definition:
client.h:47
composite.h
networking.h
textPersistenceManager.h
BALL::Client::InvalidClient
Definition:
client.h:78
BALL_SIZE_TYPE
common.h
BALL::Exception::GeneralException
Definition:
COMMON/exception.h:59
BALL::TextPersistenceManager
Definition:
textPersistenceManager.h:27
BALL::Client::NoPersistentObject
Definition:
client.h:91
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::Client::Command
Command
Definition:
client.h:57
persistentObject.h
Generated by
1.8.7