mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-03 20:18:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			582 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			582 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CPPKAFKA_TOPIC_PARTITION_H
 | 
						|
#define CPPKAFKA_TOPIC_PARTITION_H
 | 
						|
 | 
						|
#include <string>
 | 
						|
#include <cstdint>
 | 
						|
 | 
						|
namespace cppkafka {
 | 
						|
 | 
						|
class TopicPartition {
 | 
						|
public:
 | 
						|
    TopicPartition(const std::string& topic);
 | 
						|
    TopicPartition(const std::string& topic, int partition);
 | 
						|
    TopicPartition(const std::string& topic, int partition, int64_t offset);
 | 
						|
 | 
						|
    const std::string& get_topic() const;
 | 
						|
    int get_partition() const;
 | 
						|
    int64_t get_offset() const;
 | 
						|
private:
 | 
						|
    std::string topic_;
 | 
						|
    int partition_;
 | 
						|
    int64_t offset_;
 | 
						|
};
 | 
						|
 | 
						|
} // cppkafka
 | 
						|
 | 
						|
#endif // CPPKAFKA_TOPIC_PARTITION_H
 |