48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
// Filename: pipeSpec.h
|
|
// Created by: frang (07Mar99)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __PIPESPEC_H__
|
|
#define __PIPESPEC_H__
|
|
|
|
#include <pandabase.h>
|
|
|
|
#include <string>
|
|
|
|
class EXPCL_PANDA PipeSpecifier {
|
|
public:
|
|
PipeSpecifier(void);
|
|
PipeSpecifier(const PipeSpecifier&);
|
|
~PipeSpecifier(void);
|
|
|
|
INLINE void set_name(const std::string&);
|
|
INLINE std::string get_name(void) const;
|
|
INLINE void set_machine_name(const std::string&);
|
|
INLINE std::string get_machine_name(void) const;
|
|
INLINE void set_file_name(const std::string&);
|
|
INLINE std::string get_file_name(void) const;
|
|
INLINE void set_pipe_number(const int);
|
|
INLINE int get_pipe_number(void) const;
|
|
|
|
INLINE bool is_file(void) const;
|
|
INLINE bool is_remote(void) const;
|
|
|
|
std::string get_X_specifier(void) const;
|
|
|
|
private:
|
|
std::string _name;
|
|
std::string _machine;
|
|
std::string _filename;
|
|
int _pipe_number;
|
|
bool _is_file;
|
|
bool _is_remote;
|
|
|
|
INLINE void unset_machine(void);
|
|
INLINE void unset_file(void);
|
|
};
|
|
|
|
#include "pipeSpec.I"
|
|
|
|
#endif /* __PIPESPEC_H__ */
|