Changeset 7 in libcf++ for trunk/include
- Timestamp:
- 03/29/15 16:30:07 (9 years ago)
- Location:
- trunk/include/cf
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf/bin.h
r4 r7 29 29 * shallow-copy constructor(default constructor) 30 30 * @param in binary 31 * @param sizebinary size31 * @param length binary size 32 32 */ 33 33 bin(const cf::uint8_t * in = NULL, 34 const cf::size_t size= 0);34 const cf::size_t length = 0); 35 35 36 36 /** … … 78 78 * set 79 79 * @param in data 80 * @param sizesize80 * @param length size 81 81 */ 82 82 cf::void_t set(const cf::uint8_t * in, 83 const cf::size_t size);83 const cf::size_t length); 84 84 85 85 /** … … 110 110 * @return on success, position; otherwise, (cf::size_t)-1 111 111 * @param in binary 112 * @param sizebinary size112 * @param length binary size 113 113 */ 114 114 cf::size_t find(const cf::uint8_t * in, 115 const cf::size_t size) const;115 const cf::size_t length) const; 116 116 117 117 /** -
trunk/include/cf/exception.h
r4 r7 65 65 * destructor derived from std::exception::~exception() 66 66 */ 67 ~exception()67 virtual ~exception() 68 68 throw (); 69 69 -
trunk/include/cf/file.h
r4 r7 76 76 * destructor 77 77 */ 78 ~file();78 virtual ~file(); 79 79 80 80 /** -
trunk/include/cf/logger.h
r4 r7 58 58 * destructor 59 59 */ 60 ~logger();60 virtual ~logger(); 61 61 62 62 /** … … 114 114 DAILY = 0x00000010, /**< daily rotation */ 115 115 SIZE = 0x00000020, /**< size rotation */ 116 SECURE = 0x00000100 /**< encrypt message */116 PID = 0x00000100 /**< process-id in log file name */ 117 117 }; 118 118 -
trunk/include/cf/memory.h
r4 r7 32 32 * destructor. free memory 33 33 */ 34 ~memory();34 virtual ~memory(); 35 35 36 36 /** -
trunk/include/cf/network.h
r5 r7 12 12 #include <string> 13 13 14 #define UNUSED_SOCKET -1 15 14 16 namespace cf 15 17 { … … 79 81 * @throw cf::exception 80 82 */ 81 tcp(const cf::socket_t attachedSocket = -1)83 tcp(const cf::socket_t attachedSocket = UNUSED_SOCKET) 82 84 throw (cf::exception); 83 85 … … 85 87 * destructor 86 88 */ 87 ~tcp(); 89 virtual ~tcp(); 90 91 /** 92 * get socket descriptor 93 * @return socket descriptor 94 */ 95 cf::socket_t descriptor() const; 88 96 89 97 /** … … 178 186 179 187 /** 188 * set non-blocking 189 * @param flag true; false 190 */ 191 cf::void_t setNonBlocking(const cf::bool_t flag); 192 193 /** 180 194 * set timeout 181 195 * @param seconds timeout seconds … … 215 229 throw (cf::exception); 216 230 }; 231 232 /** 233 * byteOrder 234 */ 235 class byteOrder 236 { 237 public: 238 /** 239 * host to network long 240 * @return long for network 241 * @param long for host 242 */ 243 static cf::uint32_t htonl(cf::uint32_t in); 244 245 /** 246 * host to network short 247 * @return short for network 248 * @param short for host 249 */ 250 static cf::uint16_t htons(cf::uint16_t in); 251 252 /** 253 * network to host long 254 * @return long for host 255 * @param long for network 256 */ 257 static cf::uint32_t ntohl(cf::uint32_t in); 258 259 /** 260 * network to host short 261 * @return short for host 262 * @param short for network 263 */ 264 static cf::uint16_t ntohs(cf::uint16_t in); 265 }; 217 266 } 218 267 } -
trunk/include/cf/task.h
r4 r7 63 63 * destructor 64 64 */ 65 ~mutex();65 virtual ~mutex(); 66 66 67 67 /** … … 113 113 * destructor for unlocking 114 114 */ 115 ~scopedLock();115 virtual ~scopedLock(); 116 116 117 117 /** … … 155 155 * destructor 156 156 */ 157 ~thread();157 virtual ~thread(); 158 158 159 159 /**
Note:
See TracChangeset
for help on using the changeset viewer.